FontSubsetter

Vue de l’ensemble

‘FontSubsetter’ est une classe dans Aspose.Fon FOSS pour Python.

FontSubsetter.available_presets() retourne un nombre de prédécesseurs qui peuvent être utilisés pour les sous-installations web orientées.

Cette classe fournit 11 méthodes pour travailler avec des objets FontSubsetter dans les programmes Python. Les méthodologies disponibles comprennent: ‘analyze_coverage’, ‘analyses_web_Coverages’, available_presets', ‘resolve_codepoints’, 'subset, ‘subset_by_gids , ' subset-by-preset ، ’ Subset’for_text ; 'Subset _for _web; ‘Sub set for_Web_with_ coverag`. Tous les membres publics sont accessibles à toute application Pythone après l’installation de la mise en place d’Aspose.Font FOSS pour le package PyThone.

méthodes

SignatureDescription
available_presets()tuple[str, ...]Returns a tuple of preset names that can be used for web‑oriented subsetting
subset(font: Font, codepoints: set[int])FontCreates a new Font containing only the glyphs for the supplied Unicode codepoints
subset_by_text(font: Font, text: str)FontAutomatically resolves the required codepoints from a string and returns a reduced Font
subset_by_gids(font: Font, gids: set[int])FontCreates a new Font containing only the glyphs identified by the given glyph IDs
`subset_by_presets(font: Font, presets: strIterable[str])Font`
`subset_for_web(font: Font, presets: strIterable[str], text: str, codepoints: Iterable[int], ranges: Iterable[tuple[int, int]
subset_with_coverage(font: Font, codepoints: set[int])SubsetResultSubset by codepoints and return both the new font and coverage diagnostics.
`subset_for_web_with_coverage(font: Font, presets: strIterable[str], text: str, codepoints: Iterable[int], ranges: Iterable[tuple[int, int]
analyze_coverage(font: Font, codepoints: Iterable[int], groups: Iterable[CoverageGroup])SubsetCoverageReport which requested Unicode codepoints the font can encode.
`analyze_web_coverage(font: Font, presets: strIterable[str], text: str, codepoints: Iterable[int], ranges: Iterable[tuple[int, int]
`resolve_codepoints(presets: strIterable[str], text: str, codepoints: Iterable[int], ranges: Iterable[tuple[int, int]

Voir aussi

  • Aspose.Font — référence API d’entreprise
 Français