Skip to content

Reference

phil/fonts
TypeKindRole
Phil\Fonts\FontFilefinal readonly classA font file: its format, its faces, its SHA-256 and its extended metadata
Phil\Fonts\Brotlifinal classThe Brotli decompressor of ext-brotli for WOFF2, or none without the extension
Phil\Fonts\FormatenumTrueType, OpenType, collection, WOFF or WOFF2, each the keyword of CSS format()
Phil\Fonts\Fontfinal readonly classThe metadata of one face
Phil\Fonts\FontStyleenumNormal, italic or oblique
Phil\Fonts\OutlinesenumTrueType, PostScript or none
Phil\Fonts\Axisfinal readonly classA variation axis: tag, minimum, default, maximum, name identifier
Phil\Fonts\EmbeddingPermissionsfinal readonly classThe OS/2 fsType: usage, subsetting, bitmaps
Phil\Fonts\EmbeddingUsageenumInstallable, editable, preview and print, restricted
Phil\Fonts\Name\Namesfinal readonly classEvery string of the name table, and the one to show
Phil\Fonts\Name\NameRecordfinal readonly classOne string with its platform, encoding, language and name identifier
Phil\Fonts\Name\NameIdenumThe predefined name identifiers, 0 to 25
Phil\Fonts\Css\FontFaceRulefinal readonly classAn @font-face rule written from a face
Phil\Fonts\Css\FontDisplayenumThe values of font-display
Phil\Fonts\Licence\Licencefinal readonly classThe licence description and URL of a face, and the SPDX identifier recognised
Phil\Fonts\Licence\FaceLicencefinal readonly classWhat one face says about its licence, as kept in a record
Phil\Fonts\Licence\LicenceRecordfinal readonly classThe licence record of one file
Phil\Fonts\Licence\LicenceRegisterfinal readonly classOne record per file: scanned, kept as JSON, compared
Phil\Fonts\Licence\Fieldfinal readonly class, internalThe typed fields of a record read back from JSON
Phil\Fonts\Reader\FontReaderfinal readonly class, internalThe containers, down to the tables of each face
Phil\Fonts\Reader\FaceReaderfinal readonly class, internalA Font from the tables of a face
Phil\Fonts\Reader\NameTablefinal readonly class, internalThe strings of a name table decoded
Phil\Fonts\Reader\CharacterMapfinal readonly class, internalThe runs of code points of a cmap table
Phil\Fonts\Reader\Binaryfinal readonly class, internalBig-endian numbers read with bounds checked
Phil\Fonts\Exception\FontsExceptioninterfaceEvery exception of the library
Phil\Fonts\Exception\InvalidFontfinal classA file that is not a font the library can read
Phil\Fonts\Exception\UnsupportedFontfinal classA valid font the library does not read
Phil\Fonts\Exception\InvalidFontFacefinal classAn @font-face rule that cannot be written
Phil\Fonts\Exception\InvalidLicenceRegisterfinal classA register that cannot be read back