Aspose::Pdf::Text::FontRepository class

FontRepository class

Performs font search. Searches in system installed fonts and standard Pdf fonts. Also provides functionality to open custom fonts.

class FontRepository : public System::Object

Methods

MethodDescription
static FindFont(System::String)Searches and returns font with specified font name.
static FindFont(System::String, bool)Searches and returns font with specified font name ignoring or honoring case sensitivity.
static FindFont(System::String, FontStyles)Searches and returns font with specified font name and font style.
static FindFont(System::String, FontStyles, bool)Searches and returns font with specified font name and font style ignoring or honoring case sensitivity.
static get_Sources()Gets font sources collection.
static get_Substitutions()Gets font substitution strategies collection.
static LoadFonts()Loads system installed fonts and standard Pdf fonts. This method was designed to speed up font loading process. By default fonts are loaded on first request for any font. Use of this method loads system and standard Pdf fonts immediately before any Pdf document was open.
static OpenFont(System::SharedPtr<System::IO::Stream>, FontTypes)Opens font with specified font stream.
static OpenFont(System::String)Opens font with specified font file path.
static OpenFont(System::String, System::String)Opens font with specified font file path and metrics file path.
static ReloadFonts()Reloads all fonts specified by property Sources

See Also