FontRepository
Contents
[
Hide
]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
Name | Description |
---|---|
FontRepository() | Initializes a new instance of the FontRepository class |
Properties
Name | Description |
---|---|
substitutions | Gets font substitution strategies collection. |
sources | Gets font sources collection. |
Methods
Name | Description |
---|---|
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
- namespace aspose.pdf.text
- assembly Aspose.PDF