Commit e314d29
committed
Switch svg glyph references back to hex; merge tex & non-tex names.
When embedding glyphs as paths in SVG files, each glyph has a name just
so that we can link to them when actually placing the glyphs.
Previously there were two different paths for non-usetex glyphs and
usetex glyphs.
- In a2287b1 I accidentally changed the number component of non-usetex
names from hex to decimal (usetex was always using decimal); switch it
back to hex as that's typically how glyph tables are listed anyways.
Also switch the usetex case to hex for consistency.
- Make non-usetex and usetex names use the same way to generate the
name. The 2nd entry of ps_font_info typically matches postscript_name
(but is only available for Type1 fonts, whereas postscript_name is
defined for all fonts), but even if they donn't (see test_unicode_won),
this doesn't matter as long as we are internally consistent...
Also changed unicode_won test to actually parse the xml -- the regexp
search seems quite slow locally, and anyways regex'ing xml is not
necessarily a great idea :)1 parent 9756aca commit e314d29
2 files changed
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
214 | | - | |
| 213 | + | |
215 | 214 | | |
216 | | - | |
217 | | - | |
218 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 44 | + | |
53 | 45 | | |
54 | 46 | | |
55 | 47 | | |
| |||
254 | 246 | | |
255 | 247 | | |
256 | 248 | | |
257 | | - | |
| 249 | + | |
258 | 250 | | |
259 | 251 | | |
260 | 252 | | |
| |||
0 commit comments