PDF export for RaTeX DisplayList.
Built directly on pdf-writer with manual font subsetting
via subsetter. Produces compact PDFs with embedded CIDFontType2
fonts and Identity-H encoding. No high-level abstraction layer.
Font sources
- Without the
embed-fontsfeature: set [PdfOptions::font_dir] to a directory that contains the KaTeX.ttffiles (same layout as the repofonts/tree). The default [PdfOptions::default] uses an emptyfont_dirand will fail at render time until you set it. - With
embed-fonts: glyph bytes are loaded from theratex-katex-fontscrate;font_diris ignored. Therender-pdfbinary (clifeature) always enablesembed-fonts, so its--font-dirflag does not affect which fonts are embedded.