Commit 771d604
committed
Remove redundant character-to-glyph index conversion.
With Type 42 PS subsetting, the glyph is based on the subsetted font,
not the original, so this initial conversion is just thrown away.
With Type 3 subsetting, the font is opened again to subset, so we can
avoid the second one of those (though `get_font is in an LRU cache, the
second call uses different parameters that don't affect the glyph index,
but do bust the cache.)1 parent dcdd2c3 commit 771d604
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
983 | 984 | | |
984 | 985 | | |
985 | 986 | | |
986 | | - | |
987 | | - | |
988 | 987 | | |
989 | 988 | | |
990 | | - | |
| 989 | + | |
991 | 990 | | |
992 | 991 | | |
993 | 992 | | |
994 | | - | |
| 993 | + | |
995 | 994 | | |
996 | 995 | | |
997 | 996 | | |
| |||
0 commit comments