FontRepository

Vue de l’ensemble

‘FontRepository’ est une classe dans Aspose.PDF FOSS pour .NET.

Il fournit l’accès aux phontres disponibles pour être utilisés dans les documents PDF.

Cette classe fournit 10 méthodes pour travailler avec les objets de FontRepository dans des programmes .NET. Les méthodologies disponibles comprennent: FindFont, SourceRepo', LoadFons , 'OpenFon et ReloadMons'. Tous les membres publics sont accessibles à n'importe quelle application .Net après avoir installé l'Aspose.PDF FOSS pour le package .net. Propriétés : Source;Standard14Names; Substitutions`.

Propriétés

NameTypeAccessDescription
SourcesFontSourceCollectionReadThe collection of font sources used for font resolution.
SubstitutionsFontSubstitutionCollectionReadUser-supplied substitutions consulted by FindFont before falling through to Sources.
Standard14NamesIReadOnlyList<string>ReadThe 14 standard PDF font names (PDF32000_2008 §9.6.2.2).

méthodes

SignatureDescription
FontRepository()Calls FontRepository on this FontRepository instance.
FindFont(fontName: string)Find a font by name.
FindFont(fontFamilyName: string, stl: FontStyles)Find a font by family name and style.
FindFont(fontFamilyName: string, stl: FontStyles, ignoreCase: bool)Find a font by family name and style with optional case-insensitive matching.
FindFont(fontName: string, ignoreCase: bool)Find a font by name with optional case-insensitive matching.
OpenFont(fontFilePath: string)Open a font from a file path.
OpenFont(fontFilePath: string, metricsFilePath: string)Open a Type 1 font from a pair of .pfb + .afm files.
OpenFont(fontStream: System.IO.Stream, fontType: FontTypes)Open a font from a stream of TrueType (TTF) or OpenType (OTF) data.
LoadFonts()Force the font sources to enumerate available fonts.
ReloadFonts()Reset the source collection to its default state (a single SystemFontSource).

Voir aussi

  • Aspose.PDF pour .NET — API d’entreprise
 Français