FontRepository

FontRepository class

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

The FontRepository type exposes the following members:

Constructors

NameDescription
FontRepository()Initializes a new instance of the FontRepository class

Properties

NameDescription
substitutionsGets font substitution strategies collection.
sourcesGets font sources collection.

Methods

NameDescription
find_font(font_name)Searches and returns font with specified font name.
find_font(font_name, ignore_case)Searches and returns font with specified font name ignoring or honoring case sensitivity.
find_font(font_family_name, stl)Searches and returns font with specified font name and font style.
find_font(font_family_name, stl, ignore_case)Searches and returns font with specified font name and font style
ignoring or honoring case sensitivity.
open_font(font_stream, font_type)Opens font with specified font stream.
open_font(font_file_path)Opens font with specified font file path.
open_font(font_file_path, metrics_file_path)Opens font with specified font file path.
load_fonts()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.
reload_fonts()Reloads all fonts specified by property sources

See Also