Commit Graph
38 Commits
Author SHA1 Message Date
gloamxun 1ab2a29bfa Fill the page background with pagecolor 2026-10-26 02:31:50 +08:00
gloamxun 9ad404acee Paint textcolor runs in named colours 2026-10-26 01:41:00 +08:00
gloamxun a4c4864d2b Nest PDF bookmarks by heading level 2026-10-26 01:20:41 +08:00
gloamxun 5f98c199a5 Write PDF bookmarks for section headings 2026-10-26 01:17:42 +08:00
gloamxun 863e7c1a81 Write PDF metadata from hypersetup 2026-10-26 01:15:02 +08:00
gloamxun aaa1ed8213 Map Type1 glyphs through their requested Unicode 2026-10-25 01:14:54 +08:00
gloamxun c6860b7b4a Fall back per glyph outside the Type1 encodings 2026-10-25 00:03:19 +08:00
gloamxun aa4d86d735 Distinguish slanted from italic and add italic typewriter
Add cmsl10/cmbxsl10/cmitt10 faces so \slshape and \textsl no longer reuse the italic cmti10 and \ttfamily\itshape reaches cmitt10. The NFSS state tracks italic, slanted and small caps separately, with last-shape-wins semantics for \em and the shape commands.
2026-10-24 12:58:41 +08:00
gloamxun e303f7852f Select real Computer Modern small caps
Add the cmcsc10 face for \scshape and \textsc, including its Type1 outline, and compose the sc shape with the surrounding family and series. Bold small caps substitute cmbx10 and a later shape command wins, matching NFSS.
2026-10-24 12:52:15 +08:00
gloamxun 9140990a7d Add sans-serif bold and italic faces
Map \sffamily with \bfseries or \itshape onto the bundled cmssbx10 and cmssi10 metrics, with their Type1 outlines embedded alongside the other Computer Modern faces. Bold italic sans substitutes cmssbx10, matching the OT1 fallback in TeX.
2026-10-24 12:49:30 +08:00
texrra 8c42f2de2f Add Fraktur letters, infix fractions and middle delimiters
- bundle eufm10 (TFM + Type1), add the MathFraktur face and map \mathfrak
  onto it, including PDF embedding and width lookup;
- parse TeX's infix fractions (\over, \atop, \choose, \brace,
  \brack, \overwithdelims, \atopwithdelims): the rest of the current
  row becomes the denominator, ar records whether a rule is drawn, and the
  painter no longer emits parentheses (a \frac painter bug) and only draws
  the bar for \over forms;
- add MathAtom::Middle, size top-level middle delimiters with the enclosing
  \left/\right group through the CMEX size classes, and paint
  SizedDelimiter at its selected size instead of the base glyph;
- skip the parser's '\u{0}' math spaces before \big, \middle,
  \left and the withdelims delimiters, so \big ( parses like \big(.

560 workspace tests (381 route-D unit).
2026-10-24 12:28:33 +08:00
gloamxun cb40cc4634 Draw mathbb letters from msbm10 2026-10-24 12:14:54 +08:00
gloamxun e229809581 Draw mathcal letters from cmsy10 2026-10-24 03:49:55 +08:00
gloamxun 66ceabad0e Draw big operators with cmex10 outlines 2026-10-24 03:46:50 +08:00
gloamxun 6446de6b6b Embed math symbols as Computer Modern Type1 outlines 2026-10-24 03:42:45 +08:00
gloamxun a95cf8092e Embed math italic letters as Computer Modern Type1 outlines 2026-10-24 03:35:33 +08:00
gloamxun f7849f39c2 Embed every Computer Modern face as Type1 outlines 2026-10-24 03:30:12 +08:00
gloamxun 5f5fc393a4 Embed Computer Modern Type1 outlines in route-D PDFs 2026-10-24 03:28:10 +08:00
gloamxun 7b9d543e49 Honour declared paper size in route-D output 2026-10-23 03:53:32 +08:00
gloamxun 5db7acaff2 Shift the route-D page body by TeX page origin offsets 2026-10-23 01:55:28 +08:00
gloamxun 521c87d952 Use per-face Computer Modern TFMs for paragraph layout 2026-10-21 12:23:08 +08:00
gloamxun c6a58dd646 Report matching PDF widths for accented glyphs 2026-10-21 09:25:46 +08:00
gloamxun 8731ec2b9e Subset embedded fonts to the glyphs a document uses 2026-10-21 09:14:46 +08:00
gloamxun e052a0d0f3 Compress embedded font and ToUnicode streams
Route-D PDFs embedded full FontFile2 programs and ToUnicode CMaps uncompressed. Deflate both streams and declare /Filter /FlateDecode while keeping /Length1 as the uncompressed font length. The minimal route-D PDF now renders to 13.5 KB, and the pdfTeX raster comparison still matches.
2026-10-21 08:19:02 +08:00
gloamxun 67915402a6 Use CMR10 advances for route-D paragraphs and PDF text 2026-10-20 22:55:38 +08:00
gloamxun 6714591704 Use the minimal font tier for ASCII route-D PDFs 2026-10-20 22:21:10 +08:00
gloamxun 295093ae5a Embed only the font faces used by a route-D PDF 2026-10-20 22:15:53 +08:00
gloamxun 8468c36daa Embed and paint a sans paragraph face 2026-10-20 21:37:37 +08:00
gloamxun 641fc1c14b Embed all route-D text faces with CID widths 2026-10-20 20:59:01 +08:00
gloamxun a09398811f Embed a TrueType Roman font in route-D PDFs 2026-10-20 20:49:21 +08:00
gloamxun 7376acffb2 Draw negated math with a diagonal rule 2026-10-20 19:13:09 +08:00
gloamxun 495b615220 Encode Latin-1 text bytes in the PDF writer 2026-10-20 18:56:04 +08:00
gloamxun d40595c7e5 Add per-face PDF font resources 2026-10-20 18:27:14 +08:00
gloamxun eac5bd649a Inject raw PDF specials from display lists 2026-10-20 18:15:42 +08:00
gloamxun da7f580bf0 Emit PDF link annotations from display lists 2026-10-20 18:14:47 +08:00
gloamxun 431bbd14d4 Embed image XObjects in route-D PDF output 2026-10-20 18:13:33 +08:00
gloamxun 7dd3961e21 Emit multi-page route-D PDFs 2026-10-20 18:11:06 +08:00
gloamxun b6fab85f61 Add a minimal PDF writer for route-D display lists 2026-10-20 18:09:55 +08:00