Commit 8b22e7a
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 fea9209 commit 8b22e7a
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | | - | |
1183 | | - | |
1184 | 1182 | | |
1185 | 1183 | | |
1186 | | - | |
1187 | 1184 | | |
1188 | | - | |
| 1185 | + | |
| 1186 | + | |
1189 | 1187 | | |
1190 | 1188 | | |
1191 | 1189 | | |
| |||
2325 | 2323 | | |
2326 | 2324 | | |
2327 | 2325 | | |
2328 | | - | |
2329 | | - | |
2330 | | - | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
2331 | 2333 | | |
2332 | 2334 | | |
2333 | 2335 | | |
| |||
0 commit comments