Commit 726113e
committed
feat: map small-caps, tabular-oldstyle and misc non-standard glyph names
xpdf resolves glyph names through the nameToUnicode tables plus a fallback
for 'Axx'/'xx' hex-style names; it does not implement the AGL rule of
stripping the suffix after a period. Names like "a.sc" or "three.taboldstyle"
therefore resolve to nothing and the glyph is dropped from the output
entirely -- not substituted, simply lost.
Ported from the stale branch fix-non-standard-font-names, with two changes:
- sc.nameToUnicode was shipped there but never referenced from xpdfrc, so it
would have been dead weight; both it and others.nameToUnicode are now
registered.
- sc.nameToUnicode was missing k.sc (it ran a-j then l-z); added.
taboldstyle.nameToUnicode previously held only eight.taboldstyle; it now
covers 0-9.
Verified with minimal PDFs that reference these names via an /Encoding
/Differences array:
a.sc b.sc k.sc z.sc before: (no output) after: a b k z
three/seven/zero.taboldstyle before: (no output) after: 3 7 0
lscript partialdiff arrowhookleft before: d after: l d <hook>
Note that partialdiff is already in xpdf's built-in table, so that entry is
redundant; it is kept for explicitness.1 parent 6d12559 commit 726113e
4 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
0 commit comments