Commit 258de53
committed
pdf: Simplify Type 3 font character encoding
For a Type 3 font, its encoding is entirely defined by its `Encoding`
dictionary (which we create), so there's no reason to use a specific
encoding like `cp1252`. Instead, switch to Latin-1, which corresponds
exactly to the first 256 character codes in Unicode, and can be mapped
directly with `ord`.1 parent 04c8eef commit 258de53
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | | - | |
1184 | | - | |
1185 | 1183 | | |
1186 | 1184 | | |
1187 | | - | |
1188 | 1185 | | |
1189 | | - | |
| 1186 | + | |
| 1187 | + | |
1190 | 1188 | | |
1191 | 1189 | | |
1192 | 1190 | | |
| |||
2331 | 2329 | | |
2332 | 2330 | | |
2333 | 2331 | | |
2334 | | - | |
2335 | | - | |
2336 | | - | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
2337 | 2339 | | |
2338 | 2340 | | |
2339 | 2341 | | |
| |||
0 commit comments