[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs:next\u002Ffonts":3},{"versions":4,"version":13,"nav":16,"path":50,"page":86},[5,10],{"name":6,"label":7,"prefix":8,"channel":9},"0.1","0.1.0 (latest)","","latest",{"name":11,"label":12,"prefix":11,"channel":11},"next","next (main)",{"name":11,"label":12,"prefix":11,"channel":11,"base":14,"ref":15},"\u002Fdocs\u002Fnext","main",[17,21,24,27,30,33,36,39,42,46,49,52,55,58,61,64,68,71,74,77,80,83],{"slug":18,"title":19,"group":20},"index","Overview","Guide",{"slug":22,"title":23,"group":20},"getting-started","Getting started",{"slug":25,"title":26,"group":20},"php","PHP API",{"slug":28,"title":29,"group":20},"laravel","Laravel",{"slug":31,"title":32,"group":20},"resources","Resources",{"slug":34,"title":35,"group":20},"deployment","Deployment",{"slug":37,"title":38,"group":20},"troubleshooting","Troubleshooting",{"slug":40,"title":41,"group":20},"ai-assistants","Docs for AI assistants",{"slug":43,"title":44,"group":45},"css","CSS reference","Reference",{"slug":47,"title":48,"group":45},"paged-media","Paged media",{"slug":50,"title":51,"group":45},"fonts","Fonts",{"slug":53,"title":54,"group":45},"extensions","Extensions",{"slug":56,"title":57,"group":45},"pdf","The PDF",{"slug":59,"title":60,"group":45},"cli","Command line",{"slug":62,"title":63,"group":45},"rust","Rust library",{"slug":65,"title":66,"group":67},"protocol","Worker protocol","Internals",{"slug":69,"title":70,"group":67},"releasing","Releasing",{"slug":72,"title":73,"group":67},"adr","Architecture decisions",{"slug":75,"title":76,"group":67,"parent":73},"adr\u002F0001-record-architecture-decisions","1. Record architecture decisions",{"slug":78,"title":79,"group":67,"parent":73},"adr\u002F0002-rust-and-fragmentation-in-layout","2. Rust core with fragmentation inside layout",{"slug":81,"title":82,"group":67,"parent":73},"adr\u002F0003-css-parsing-and-own-selector-matching","3. lightningcss for parsing, own selector matching and cascade",{"slug":84,"title":85,"group":67,"parent":73},"adr\u002F0004-extensions-only-where-css-has-no-way","4. Extensions only where CSS has no way",{"title":51,"seoTitle":87,"seoDescription":88,"html":89,"headings":90,"editUrl":134,"sourceUrl":135,"markdownUrl":136,"prev":137,"next":138},"Fonts: @font-face, font directories and system fonts","The built-in font, font directories, @font-face, system fonts, fallback for missing characters, OpenType features and languages, and fonts in the PDF.","\u003Ch1 id=\"fonts\">Fonts\u003C\u002Fh1>\n\u003Cp>Fagus uses only the fonts you give it. It does not look at the fonts installed on the machine\nunless you ask it to, so a document prints the same on your laptop, in CI and on the production\nserver. This page describes where fonts come from, how CSS finds them, and what Fagus embeds in the\nPDF.\u003C\u002Fp>\n\u003Cp>Fonts come from four places, in this order:\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Ccode>@font-face\u003C\u002Fcode> rules of the document.\u003C\u002Fli>\n\u003Cli>Fonts you configure: font directories and fonts added with \u003Ccode>addFont()\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>The fonts installed on the system, only if you turn them on.\u003C\u002Fli>\n\u003Cli>Inter, built into Fagus, for anything no other font covers.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch2 id=\"the-built-in-font\">The built-in font\u003Ca class=\"f-doc-anchor\" href=\"#the-built-in-font\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Fagus brings Inter in regular and bold (SIL Open Font License 1.1). A document renders without any\nfonts of your own: text in a family that no font has, and characters that no other font covers, are\nset in Inter. Italics are made up by slanting the regular face.\u003C\u002Fp>\n\u003Cp>Inter covers Latin, Greek and Cyrillic. Characters it lacks (Chinese, Japanese, Arabic, emoji …)\nshow as a &quot;no glyph&quot; box unless you add a font that has them. A normal PDF gets no warning for this;\nPDF\u002FA refuses such a document (&quot;Inter has no glyph for \u003Ccode>日\u003C\u002Fcode>, and no other font has one&quot;).\u003C\u002Fp>\n\u003Cp>A font of the family Inter that you add (in a font directory, with \u003Ccode>addFont()\u003C\u002Fcode> or \u003Ccode>@font-face\u003C\u002Fcode>)\nreplaces the built-in faces.\u003C\u002Fp>\n\u003Ch2 id=\"add-font-directories\">Add font directories\u003Ca class=\"f-doc-anchor\" href=\"#add-font-directories\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>A font directory makes its fonts available to every document by their family names, as installed\nfonts are in a browser.\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">use\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Fagus\\Engine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">use\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Fagus\\Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#79C0FF\">Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">::\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">useEngine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">new\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Engine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FFA657\">    fontDirectories\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: [\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">__DIR__\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">.\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'\u002Fresources\u002Ffonts'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">],\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">));\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>html\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">&#x3C;\u003C\u002Fspan>\u003Cspan style=\"color:#7EE787\">style\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">>\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#7EE787\">  body\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"Source Sans 3\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">, \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">sans-serif\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">&#x3C;\u002F\u003C\u002Fspan>\u003Cspan style=\"color:#7EE787\">style\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">>\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>In Laravel, list the directories under \u003Ccode>fonts\u003C\u002Fcode> in \u003Ccode>config\u002Ffagus.php\u003C\u002Fcode>. The default is\n\u003Ccode>resources\u002Ffonts\u003C\u002Fcode>, so fonts you put there work without configuration. Directories that do not exist\nare skipped.\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#8B949E\">\u002F\u002F config\u002Ffagus.php\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#A5D6FF\">'fonts'\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> =>\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> [\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#D2A8FF\">    resource_path\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'fonts'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#D2A8FF\">    storage_path\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'app\u002Ffonts'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">],\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>On the command line, \u003Ccode>--font-dir\u003C\u002Fcode> adds a directory and can be repeated:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>sh\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FFA657\">fagus\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> render\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> invoice.html\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> -o\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> invoice.pdf\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> --font-dir\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> resources\u002Ffonts\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>Details:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Fagus reads files ending in \u003Ccode>.ttf\u003C\u002Fcode>, \u003Ccode>.otf\u003C\u002Fcode>, \u003Ccode>.ttc\u003C\u002Fcode>, \u003Ccode>.otc\u003C\u002Fcode>, \u003Ccode>.woff\u003C\u002Fcode> and \u003Ccode>.woff2\u003C\u002Fcode>, in the\ndirectory and its subdirectories. Files that are not fonts are skipped.\u003C\u002Fli>\n\u003Cli>The family name is the one stored in the font file (the name your operating system's font viewer\nshows), not the file name. All weights and styles of a family can be in one directory; CSS font\nmatching picks the right face.\u003C\u002Fli>\n\u003Cli>The worker reads the directories when it starts. Fonts added to a directory later are seen by the\nnext worker (after \u003Ccode>close()\u003C\u002Fcode>, a deploy, or a restart of the queue worker).\u003C\u002Fli>\n\u003Cli>In PHP, every directory in \u003Ccode>fontDirectories\u003C\u002Fcode> must exist: before it starts the worker, the engine\nthrows an \u003Ccode>EngineException\u003C\u002Fcode> that names a missing one (&quot;The font directory \u003Ccode>…\u003C\u002Fcode> does not exist.&quot;).\nThe Laravel integration skips directories of its \u003Ccode>fonts\u003C\u002Fcode> configuration that do not exist, since\nits default, \u003Ccode>resources\u002Ffonts\u003C\u002Fcode>, is optional.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"add-a-font-from-memory\">Add a font from memory\u003Ca class=\"f-doc-anchor\" href=\"#add-a-font-from-memory\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Ccode>addFont()\u003C\u002Fcode> adds a font from its bytes, for all later documents of the engine. It returns the number\nof faces in the file (a collection has several).\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">use\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Fagus\\Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">$faces \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">::\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">engine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">()\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">->\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">addFont\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">file_get_contents\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">__DIR__\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">.\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'\u002Fresources\u002Ffonts\u002FHouseFont.otf'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">));\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>In Laravel, use the facade's engine: \u003Ccode>Fagus::engine()-&gt;addFont($bytes)\u003C\u002Fcode>. The engine keeps the font\nand hands it to a new worker whenever one starts. Prefer font directories for fonts you always need:\n\u003Ccode>addFont()\u003C\u002Fcode> sends the font through the pipe to the worker each time a worker starts.\u003C\u002Fp>\n\u003Ch2 id=\"load-fonts-with-font-face\">Load fonts with @font-face\u003Ca class=\"f-doc-anchor\" href=\"#load-fonts-with-font-face\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>A document can bring its own fonts. The URLs resolve like those of images: against the base\ndirectory, from resources handed over, or through the resolver (see \u003Ca href=\"\u002Fdocs\u002Fnext\u002Fresources\">Resources\u003C\u002Fa>).\nFagus never loads fonts from the network, so a \u003Ccode>&lt;link&gt;\u003C\u002Fcode> to Google Fonts does not work; download the\nfont files and serve them locally.\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>html\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">&#x3C;\u003C\u002Fspan>\u003Cspan style=\"color:#7EE787\">style\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">>\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#FF7B72\">  @font-face\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"Brand\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    src\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">url\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FFA657\">fonts\u002FBrand-Regular.woff2\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">) \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">format\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"woff2\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    font-weight\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">400\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#E6EDF3\">  }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#FF7B72\">  @font-face\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"Brand\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    src\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">url\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FFA657\">fonts\u002FBrand-Bold.woff2\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">) \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">format\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"woff2\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    font-weight\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">700\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#E6EDF3\">  }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#7EE787\">  body\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"Brand\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">, \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">sans-serif\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">&#x3C;\u002F\u003C\u002Fspan>\u003Cspan style=\"color:#7EE787\">style\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">>\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#79C0FF\">Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">::\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">html\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">($html)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    ->\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">baseDirectory\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">__DIR__\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">.\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'\u002Fresources\u002Fpdf'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">)   \u003C\u002Fspan>\u003Cspan style=\"color:#8B949E\">\u002F\u002F fonts\u002FBrand-Regular.woff2 is read from here\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    ->\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">save\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'invoice.pdf'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">);\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>What works, as in Chrome:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Formats:\u003C\u002Fstrong> TrueType, OpenType, WOFF, WOFF2 and collections. Sources are tried in order, and\nsources whose \u003Ccode>format()\u003C\u002Fcode> or \u003Ccode>tech()\u003C\u002Fcode> Chrome does not load (EOT, SVG fonts, Graphite,\nincremental) are skipped.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ccode>local()\u003C\u002Fcode>\u003C\u002Fstrong> finds a face by its PostScript or full name among the fonts of your font\ndirectories (and the system's, if system fonts are on).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Descriptors:\u003C\u002Fstrong> \u003Ccode>font-weight\u003C\u002Fcode>, \u003Ccode>font-style\u003C\u002Fcode> (\u003Ccode>italic\u003C\u002Fcode>, \u003Ccode>oblique\u003C\u002Fcode> with angles and ranges),\n\u003Ccode>font-stretch\u003C\u002Fcode> (with ranges), \u003Ccode>unicode-range\u003C\u002Fcode>, \u003Ccode>size-adjust\u003C\u002Fcode>, \u003Ccode>ascent-override\u003C\u002Fcode>,\n\u003Ccode>descent-override\u003C\u002Fcode>, \u003Ccode>line-gap-override\u003C\u002Fcode> and \u003Ccode>font-feature-settings\u003C\u002Fcode>. \u003Ccode>font-display\u003C\u002Fcode> has no effect\non a document that is rendered once.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ccode>unicode-range\u003C\u002Fcode>:\u003C\u002Fstrong> rules of one family with the same descriptors make one face whose files\ncover characters by their ranges, as Google Fonts serves its fonts in pieces.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Variable fonts:\u003C\u002Fstrong> text is set at the coordinates its style asks for: the weight on \u003Ccode>wght\u003C\u002Fcode>,\nthe width on \u003Ccode>wdth\u003C\u002Fcode>, the size on \u003Ccode>opsz\u003C\u002Fcode> (\u003Ccode>font-optical-sizing\u003C\u002Fcode>), then \u003Ccode>font-variation-settings\u003C\u002Fcode>.\nA weight range in the rule (\u003Ccode>font-weight: 100 900\u003C\u002Fcode>) limits the weights, without one the font's\naxis does.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>A font that cannot be loaded is reported as \u003Ccode>resource.not-loaded\u003C\u002Fcode>, a file that is not a font Fagus\ncan read as \u003Ccode>font.unsupported\u003C\u002Fcode>; the next source or the next family in \u003Ccode>font-family\u003C\u002Fcode> takes over.\nFonts are cached by the engine, so a template that loads the same font for every document reads it\nonce.\u003C\u002Fp>\n\u003Ch2 id=\"fonts-in-headers-and-footers\">Fonts in headers and footers\u003Ca class=\"f-doc-anchor\" href=\"#fonts-in-headers-and-footers\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Chrome loads the faces of \u003Ccode>@font-face\u003C\u002Fcode> rules while it lays out the document, and not again for the\npage margins. A face that the content of the document never uses is therefore missing in the margin\nboxes, and their text falls back to the next family in its \u003Ccode>font-family\u003C\u002Fcode>. Fagus does the same, so\nthat headers and footers look as they do in Chrome.\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>html\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">&#x3C;\u003C\u002Fspan>\u003Cspan style=\"color:#7EE787\">style\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">>\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#FF7B72\">  @font-face\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: Brand; \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">src\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">url\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FFA657\">fonts\u002FBrand-Regular.woff2\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">); }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#FF7B72\">  @font-face\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: Brand; \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">src\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">url\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FFA657\">fonts\u002FBrand-Italic.woff2\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">); \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-style\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">italic\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#FF7B72\">  @page\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    @top-center\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">content\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"Annual report\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: Brand; \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-style\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">italic\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#E6EDF3\">  }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#7EE787\">  body\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: Brand; }   \u003C\u002Fspan>\u003Cspan style=\"color:#8B949E\">\u002F* no italic text in the content *\u002F\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">&#x3C;\u002F\u003C\u002Fspan>\u003Cspan style=\"color:#7EE787\">style\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">>\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>Here the running head is not set in Brand Italic. To fix it, either use the face somewhere in the\ndocument's content, or load the font from a font directory or with \u003Ccode>addFont()\u003C\u002Fcode> instead of\n\u003Ccode>@font-face\u003C\u002Fcode>: those fonts are always available, also in margin boxes. Running elements\n(\u003Ccode>position: running()\u003C\u002Fcode>) are part of the content and are not affected.\u003C\u002Fp>\n\u003Ch2 id=\"set-the-generic-families\">Set the generic families\u003Ca class=\"f-doc-anchor\" href=\"#set-the-generic-families\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>The generic families \u003Ccode>serif\u003C\u002Fcode>, \u003Ccode>sans-serif\u003C\u002Fcode> and \u003Ccode>monospace\u003C\u002Fcode> have no fonts of their own in Fagus.\nTell Fagus which families they stand for:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">use\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Fagus\\Engine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">use\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Fagus\\Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#79C0FF\">Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">::\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">useEngine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">new\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Engine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FFA657\">    fontDirectories\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: [\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">__DIR__\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">.\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'\u002Fresources\u002Ffonts'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">],\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FFA657\">    sansSerif\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'Inter'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FFA657\">    serif\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'Source Serif 4'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FFA657\">    monospace\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'JetBrains Mono'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">));\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#8B949E\">\u002F\u002F config\u002Ffagus.php (Laravel)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#A5D6FF\">'families'\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> =>\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> [\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#A5D6FF\">    'sans-serif'\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> =>\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> 'Inter'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#A5D6FF\">    'serif'\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> =>\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> 'Source Serif 4'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#A5D6FF\">    'monospace'\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> =>\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> 'JetBrains Mono'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">],\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>On the command line, \u003Ccode>fagus render\u003C\u002Fcode> takes \u003Ccode>--sans-serif\u003C\u002Fcode>; the worker that PHP starts also takes\n\u003Ccode>--serif\u003C\u002Fcode> and \u003Ccode>--monospace\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Where a family is not set, Fagus chooses:\u003C\u002Fp>\n\u003Ctable class=\"f-doc-table f-stack-table\">\n\u003Cthead>\n\u003Ctr>\n\u003Cth>CSS\u003C\u002Fth>\n\u003Cth>Font\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>no \u003Ccode>font-family\u003C\u002Fcode> at all\u003C\u002Ftd>\n\u003Ctd data-label=\"Font\">the \u003Ccode>serif\u003C\u002Fcode> family, as browsers use their serif font by default\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>serif\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Font\">the \u003Ccode>serif\u003C\u002Fcode> family, else the first family added, else Inter\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>sans-serif\u003C\u002Fcode>, \u003Ccode>system-ui\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Font\">the \u003Ccode>sans-serif\u003C\u002Fcode> family, else the first family added, else Inter\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>monospace\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Font\">the \u003Ccode>monospace\u003C\u002Fcode> family, else Menlo, Consolas, DejaVu Sans Mono or Liberation Mono if added, else any fixed-pitch font added, else the first family added\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>cursive\u003C\u002Fcode>, \u003Ccode>fantasy\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Font\">nothing; the next family in the list\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>math\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Font\">a font with a MATH table (STIX Two Math, Cambria Math, Latin Modern Math …), else the default font\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>a family no font has\u003C\u002Ftd>\n\u003Ctd data-label=\"Font\">the \u003Ccode>sans-serif\u003C\u002Fcode> family, else the first family added, else Inter\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>&quot;The first family added&quot; is the family of the first font file read from the font directories (in\nalphabetical order of their paths), else of the first \u003Ccode>addFont()\u003C\u002Fcode>. Two consequences:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Text without \u003Ccode>font-family\u003C\u002Fcode> is set in the \u003Ccode>serif\u003C\u002Fcode> family. If you set only \u003Ccode>sansSerif\u003C\u002Fcode>, give your\n\u003Ccode>body\u003C\u002Fcode> a \u003Ccode>font-family\u003C\u002Fcode> too.\u003C\u002Fli>\n\u003Cli>With several fonts in your directories, name the family in your CSS or set the generic families,\nrather than relying on the first family added.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Text in exactly \u003Ccode>font-family: monospace\u003C\u002Fcode> gets Chrome's default size of 13px instead of 16px, as in\nevery browser.\u003C\u002Fp>\n\u003Ch2 id=\"use-the-fonts-installed-on-the-system\">Use the fonts installed on the system\u003Ca class=\"f-doc-anchor\" href=\"#use-the-fonts-installed-on-the-system\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>With system fonts on, the fonts installed on the machine serve too, as in Chrome:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">new\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Engine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FFA657\">systemFonts\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">true\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">);\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#8B949E\">\u002F\u002F config\u002Ffagus.php, or FAGUS_SYSTEM_FONTS=true in .env\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#A5D6FF\">'system_fonts'\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> =>\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> true\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>sh\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FFA657\">fagus\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> render\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> page.html\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> -o\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> page.pdf\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> --system-fonts\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>Fagus then finds fonts where Chrome finds them:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>macOS:\u003C\u002Fstrong> \u003Ccode>\u002FSystem\u002FLibrary\u002FFonts\u003C\u002Fcode>, \u003Ccode>\u002FLibrary\u002FFonts\u003C\u002Fcode> and \u003Ccode>~\u002FLibrary\u002FFonts\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Linux:\u003C\u002Fstrong> the directories fontconfig lists, else \u003Ccode>\u002Fusr\u002Fshare\u002Ffonts\u003C\u002Fcode>, \u003Ccode>\u002Fusr\u002Flocal\u002Fshare\u002Ffonts\u003C\u002Fcode>\nand \u003Ccode>~\u002F.local\u002Fshare\u002Ffonts\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Windows:\u003C\u002Fstrong> \u003Ccode>%WINDIR%\\Fonts\u003C\u002Fcode> and the fonts installed for the user.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>With system fonts:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Families that documents name come from the system. Your font directories and \u003Ccode>@font-face\u003C\u002Fcode> still\ncome first for their families; faces from a font directory join the installed faces of the same\nfamily.\u003C\u002Fli>\n\u003Cli>The generic families are those of Chrome on macOS where they are installed (Times, Helvetica,\nMenlo, San Francisco for \u003Ccode>system-ui\u003C\u002Fcode>, Apple Chancery, Papyrus), else those of Windows and Linux\n(Times New Roman, Arial, Consolas, Liberation, DejaVu, Noto …). For Japanese, Korean and Chinese\ntext (by \u003Ccode>lang\u003C\u002Fcode>) they are the fonts Chrome takes for these languages (Hiragino, Apple SD Gothic\nNeo, PingFang, Yu Gothic, Malgun Gothic, Microsoft YaHei, Noto CJK …).\u003C\u002Fli>\n\u003Cli>Text without \u003Ccode>font-family\u003C\u002Fcode> is set in the standard font of its language, as in Chrome.\u003C\u002Fli>\n\u003Cli>\u003Ccode>ui-sans-serif\u003C\u002Fcode>, \u003Ccode>ui-serif\u003C\u002Fcode>, \u003Ccode>ui-monospace\u003C\u002Fcode>, \u003Ccode>ui-rounded\u003C\u002Fcode> and \u003Ccode>-apple-system\u003C\u002Fcode> match nothing, as in\nChrome, so Tailwind's default \u003Ccode>font-sans\u003C\u002Fcode> stack gets the system font.\u003C\u002Fli>\n\u003Cli>The built-in Inter no longer answers to the name Inter unless Inter is installed or added.\u003C\u002Fli>\n\u003Cli>Installed fonts are indexed when the worker starts and read only when a document uses them.\u003C\u002Fli>\n\u003Cli>A face whose glyphs Fagus cannot draw is passed over for the next font, with a \u003Ccode>font.unsupported\u003C\u002Fcode>\nwarning.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>The output then depends on the fonts of the machine. Leave system fonts off on servers, and use it\nwhere documents must look like Chrome on the same machine, or for scripts that no font of yours\ncovers.\u003C\u002Fp>\n\u003Ch2 id=\"fall-back-for-missing-characters\">Fall back for missing characters\u003Ca class=\"f-doc-anchor\" href=\"#fall-back-for-missing-characters\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>When the font of the text lacks a character, Fagus looks for it as Chrome does:\u003C\u002Fp>\n\u003Col>\n\u003Cli>in the other families of the element's \u003Ccode>font-family\u003C\u002Fcode> list, in order;\u003C\u002Fli>\n\u003Cli>with system fonts on: in the standard font of the text's language, then in the fonts the system\nfalls back to for the character's script (PingFang or Songti for Chinese, Hiragino for Japanese,\nGeeza Pro for Arabic, Apple Symbols for symbols … on macOS);\u003C\u002Fli>\n\u003Cli>in the other fonts you added;\u003C\u002Fli>\n\u003Cli>in the built-in Inter.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Spaces take the first font of the list that has them, and a letter with combining accents stays in\none font that can draw the whole cluster. With \u003Ccode>line-height: normal\u003C\u002Fcode>, a line with glyphs from a\nfallback font grows to make room for them, as in Chrome.\u003C\u002Fp>\n\u003Cp>A character that no font has is drawn as the empty box (\u003Ccode>.notdef\u003C\u002Fcode>) of the first font. Its text\nstays in the PDF, so that it is copied and found as the character it is. The warning\n\u003Ccode>font.missing-glyph\u003C\u002Fcode> names such characters, up to eight and the count of the rest, how often they\noccur and the line of the element of the first:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>text\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan>html:12: warning[font.missing-glyph]: no font has glyphs for 2 characters in 3 places: `漢` (U+6F22), `字` (U+5B57); they are drawn as empty boxes (add a font that has them)\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>PDF\u002FA and PDF\u002FUA do not allow such characters: the document is refused instead (see\n\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fpdf\">pdf.md\u003C\u002Fa>).\u003C\u002Fp>\n\u003Cp>To print a script reliably, add a font for it and name it in the font list:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>css\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#7EE787\">body\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-family\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"Inter\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">, \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"Noto Sans JP\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">, \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">sans-serif\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Ch2 id=\"bold-italic-and-small-capitals\">Bold, italic and small capitals\u003Ca class=\"f-doc-anchor\" href=\"#bold-italic-and-small-capitals\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Fagus picks the closest face of a family by width, style and weight, as CSS font matching\ndescribes. Where a family has no bold or italic face, Fagus makes one up as Chrome does: bold by\nstroking the outlines, italic by slanting them. \u003Ccode>font-synthesis\u003C\u002Fcode> controls this:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>css\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#79C0FF\">.logo\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-synthesis\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">none\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }          \u003C\u002Fspan>\u003Cspan style=\"color:#8B949E\">\u002F* never make up bold, italic or small caps *\u002F\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#79C0FF\">.label\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-synthesis\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">weight\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }       \u003C\u002Fspan>\u003Cspan style=\"color:#8B949E\">\u002F* only bold *\u002F\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>\u003Ccode>font-variant-caps: small-caps\u003C\u002Fcode> uses the font's small capitals (\u003Ccode>smcp\u003C\u002Fcode>); where the font has none,\nFagus makes them from capitals at 70 % of the size, as Chrome does.\u003C\u002Fp>\n\u003Ch2 id=\"opentype-features\">OpenType features\u003Ca class=\"f-doc-anchor\" href=\"#opentype-features\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>CSS controls the font's OpenType features as in Chrome:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>font-variant-numeric\u003C\u002Fcode>: \u003Ccode>tabular-nums\u003C\u002Fcode> (columns of amounts that line up), \u003Ccode>oldstyle-nums\u003C\u002Fcode>,\n\u003Ccode>lining-nums\u003C\u002Fcode>, \u003Ccode>slashed-zero\u003C\u002Fcode>, \u003Ccode>diagonal-fractions\u003C\u002Fcode>, \u003Ccode>ordinal\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Ccode>font-variant-ligatures\u003C\u002Fcode>, \u003Ccode>-caps\u003C\u002Fcode>, \u003Ccode>-east-asian\u003C\u002Fcode>, \u003Ccode>-position\u003C\u002Fcode>, and\n\u003Ccode>font-variant-alternates: historical-forms\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Ccode>font-kerning\u003C\u002Fcode>, \u003Ccode>font-optical-sizing\u003C\u002Fcode>, \u003Ccode>font-variation-settings\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Ccode>font-feature-settings\u003C\u002Fcode> for anything else (\u003Ccode>&quot;ss01&quot;\u003C\u002Fcode>, \u003Ccode>&quot;cv11&quot;\u003C\u002Fcode>), applied last, also as an\n\u003Ccode>@font-face\u003C\u002Fcode> descriptor.\u003C\u002Fli>\n\u003Cli>\u003Ccode>font-palette\u003C\u002Fcode> and \u003Ccode>@font-palette-values\u003C\u002Fcode> for color fonts.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>css\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#7EE787\">td\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">.amount\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">font-variant-numeric\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">tabular-nums\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">text-align\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">right\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>As in Chrome, \u003Ccode>letter-spacing\u003C\u002Fcode> other than 0 turns off common and contextual ligatures.\u003C\u002Fp>\n\u003Ch2 id=\"languages\">Languages\u003Ca class=\"f-doc-anchor\" href=\"#languages\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>The \u003Ccode>lang\u003C\u002Fcode> attribute matters for fonts and text:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Text is shaped in its language, so a font's localized forms (\u003Ccode>locl\u003C\u002Fcode>) apply: Bulgarian or\nSerbian Cyrillic letter forms, or EB Garamond's German \u003Ccode>f\u003C\u002Fcode>, which takes no \u003Ccode>fi\u003C\u002Fcode> ligature.\u003C\u002Fli>\n\u003Cli>\u003Ccode>hyphens: auto\u003C\u002Fcode> needs \u003Ccode>lang\u003C\u002Fcode> to hyphenate. Fagus has Chrome's hyphenation dictionaries for 48\nlanguages (see \u003Ca href=\"\u002Fdocs\u002Fnext\u002Fcss#hyphenation\">CSS reference\u003C\u002Fa>).\u003C\u002Fli>\n\u003Cli>Quotation marks of \u003Ccode>&lt;q&gt;\u003C\u002Fcode> follow the language.\u003C\u002Fli>\n\u003Cli>With system fonts on, the generic families and fallback fonts depend on it.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Set the language on the root element. It also becomes the language of the PDF.\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>html\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">&#x3C;\u003C\u002Fspan>\u003Cspan style=\"color:#7EE787\">html\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> lang\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">=\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"de\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">>\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Ch2 id=\"the-language-of-form-controls\">The language of form controls\u003Ca class=\"f-doc-anchor\" href=\"#the-language-of-form-controls\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Form controls show texts of their own: the labels of submit and reset buttons, &quot;Choose File&quot; and &quot;No\nfile chosen&quot; of file inputs, the placeholders and formats of date and time fields (\u003Ccode>mm\u002Fdd\u002Fyyyy\u003C\u002Fcode>,\n12-hour time), the decimal separator of number fields, and the &quot;Details&quot; of a \u003Ccode>&lt;details&gt;\u003C\u002Fcode> without a\nsummary.\u003C\u002Fp>\n\u003Cp>Chrome writes these in the language of its user interface. Fagus writes them as Chrome does in the\nlanguage of the control instead: its \u003Ccode>lang\u003C\u002Fcode> (inherited, as from \u003Ccode>&lt;html lang=&quot;de&quot;&gt;\u003C\u002Fcode>), else the\nengine's \u003Ccode>locale\u003C\u002Fcode>, else American English.\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">new\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Engine\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FFA657\">locale\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'de-DE'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">);\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#8B949E\">\u002F\u002F config\u002Ffagus.php, or FAGUS_LOCALE=de-DE in .env\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#A5D6FF\">'locale'\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> =>\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\"> env\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'FAGUS_LOCALE'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">),\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>sh\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FFA657\">fagus\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> render\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> form.html\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> -o\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> form.pdf\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> --locale\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> de-DE\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>Fagus has Chrome's texts and formats for English (\u003Ccode>en-US\u003C\u002Fcode>, \u003Ccode>en-GB\u003C\u002Fcode>, \u003Ccode>en-AU\u003C\u002Fcode>, \u003Ccode>en-IN\u003C\u002Fcode>), German,\nFrench (\u003Ccode>fr\u003C\u002Fcode>, \u003Ccode>fr-CA\u003C\u002Fcode>), Spanish (\u003Ccode>es\u003C\u002Fcode>, \u003Ccode>es-419\u003C\u002Fcode> and \u003Ccode>es-MX\u003C\u002Fcode>), Italian, Dutch, Portuguese (\u003Ccode>pt-BR\u003C\u002Fcode>,\n\u003Ccode>pt-PT\u003C\u002Fcode>) and Polish. A \u003Ccode>lang\u003C\u002Fcode> of another language leaves the choice to the \u003Ccode>locale\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>The \u003Ccode>locale\u003C\u002Fcode> also sets the language that text without \u003Ccode>lang\u003C\u002Fcode> is shaped in, as Chrome shapes text in\nthe language of its user interface. It does not turn on hyphenation: that needs \u003Ccode>lang\u003C\u002Fcode>. The PDF's\nlanguage falls back to the \u003Ccode>locale\u003C\u002Fcode> where the document has no \u003Ccode>lang\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"fonts-in-the-pdf\">Fonts in the PDF\u003Ca class=\"f-doc-anchor\" href=\"#fonts-in-the-pdf\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Every font a document uses is embedded in the PDF as a subset that holds only the glyphs used, so a\nPDF with a large font stays small. Make sure the license of your fonts allows embedding: Fagus\nembeds fonts whatever their license flags say, except in PDF\u002FA, which refuses a font whose flags\nrestrict embedding.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>An instance of a variable font is embedded as a static font with the font's PostScript name, so\nevery PDF viewer shows it.\u003C\u002Fli>\n\u003Cli>Text stays text: it can be searched, copied and read by screen readers. A hyphen added at a line\nbreak is a soft hyphen in the text, so copied words come out whole.\u003C\u002Fli>\n\u003Cli>Glyphs that a clip hides entirely are left out, so text extraction finds only what is visible.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Embedded subsets are also what PDF\u002FA requires, so PDF\u002FA needs no extra font settings (see\n\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fpdf\">PDF output\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch2 id=\"make-output-reproducible\">Make output reproducible\u003Ca class=\"f-doc-anchor\" href=\"#make-output-reproducible\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>With system fonts off (the default), the fonts of a document are exactly the built-in Inter, your\nfont directories, the fonts added with \u003Ccode>addFont()\u003C\u002Fcode> and the document's \u003Ccode>@font-face\u003C\u002Fcode> rules. Hyphenation\ndictionaries and line breaking rules are built into Fagus. A document therefore renders the same PDF\non Linux, macOS and Windows, as long as the fonts and the document are the same.\u003C\u002Fp>\n\u003Cp>For byte-identical files, also fix the creation date:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#79C0FF\">Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">::\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">html\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">($html)\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">->\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">created\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">new\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> DateTimeImmutable\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'2026-11-02 12:00'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">))\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">->\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">save\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">'invoice.pdf'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">);\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>Commit your fonts with the application (for example in \u003Ccode>resources\u002Ffonts\u003C\u002Fcode>) rather than relying on\nfonts installed on the server.\u003C\u002Fp>\n",[91,95,98,101,104,107,110,113,116,119,122,125,128,131],{"id":92,"text":93,"level":94},"the-built-in-font","The built-in font",2,{"id":96,"text":97,"level":94},"add-font-directories","Add font directories",{"id":99,"text":100,"level":94},"add-a-font-from-memory","Add a font from memory",{"id":102,"text":103,"level":94},"load-fonts-with-font-face","Load fonts with @font-face",{"id":105,"text":106,"level":94},"fonts-in-headers-and-footers","Fonts in headers and footers",{"id":108,"text":109,"level":94},"set-the-generic-families","Set the generic families",{"id":111,"text":112,"level":94},"use-the-fonts-installed-on-the-system","Use the fonts installed on the system",{"id":114,"text":115,"level":94},"fall-back-for-missing-characters","Fall back for missing characters",{"id":117,"text":118,"level":94},"bold-italic-and-small-capitals","Bold, italic and small capitals",{"id":120,"text":121,"level":94},"opentype-features","OpenType features",{"id":123,"text":124,"level":94},"languages","Languages",{"id":126,"text":127,"level":94},"the-language-of-form-controls","The language of form controls",{"id":129,"text":130,"level":94},"fonts-in-the-pdf","Fonts in the PDF",{"id":132,"text":133,"level":94},"make-output-reproducible","Make output reproducible","https:\u002F\u002Fgithub.com\u002Fnforst\u002Ffagus\u002Fedit\u002Fmain\u002Fdocs\u002Ffonts.md","https:\u002F\u002Fgithub.com\u002Fnforst\u002Ffagus\u002Fblob\u002Fmain\u002Fdocs\u002Ffonts.md","\u002Fdocs\u002Fnext\u002Ffonts.md",{"slug":47,"title":48},{"slug":53,"title":54}]