PdfFonts
Corex\Config\Export\PdfFonts · class · Config layer
The fonts a PDF can be written with where CoreX runs (spec 103, US8). The PDF library lists forty fonts, one or more for each script it can write, and picks by the text. It does not look whether a font’s file is there until it needs it, and then it stops the whole document. A shared-host package ships a few of the fonts, because the whole set is most of the package’s weight. So the library is given the list of what is installed, and writes a script it has no font for in its default font: the letters that font lacks print as empty boxes, and the export is still written.
Public API
Section titled “Public API”__construct(array $directories)
Section titled “__construct(array $directories)”shippedWithLibrary(): self
Section titled “shippedWithLibrary(): self”The fonts in the directory the PDF library ships its own in.
directories(): array
Section titled “directories(): array”all(): array
Section titled “all(): array”Every font the library lists, installed or not.
installed(): array
Section titled “installed(): array”The library’s fonts that are installed.
among(array $fonts): array
Section titled “among(array $fonts): array”Of the fonts given, the ones whose every file is in a directory. A font with its regular file and without its bold is left out: a bold heading in it would stop the document.