Skip to content

PaperForge 0.3.0 — Embedded Fonts, Unicode Text, and Document Layout

Latest

Choose a tag to compare

@Manuel1471 Manuel1471 released this 27 Jul 06:27
8bd4668

PaperForge 0.3.0 expands the pure Elixir PDF engine with embedded TrueType fonts, visible Unicode text, font families, default fonts, real TrueType text metrics, vertical flow, automatic page breaks, basic tables, and URI link annotations.

Highlights:

  • Embedded TrueType fonts with Type0 / CIDFontType2 PDF font objects
  • Identity-H encoding and /ToUnicode maps for Unicode extraction/search
  • Font-family registration with regular, bold, italic, and bold italic variants
  • Document-level default font selection
  • TrueType-backed text measurement, wrapping, and alignment
  • Logical subsetting of PDF /W arrays and /ToUnicode maps to used glyphs
  • Vertical text flow with automatic page breaks
  • Basic table rendering
  • Link annotations with URI actions
  • PNG RGBA transparency via /SMask
  • Complete showcase example and expanded test coverage

Note: physical TTF table subsetting is not included yet; /FontFile2 still embeds the full .ttf program.