Commit 0f757d2
committed
Small simplification to textpath.
- verts of glyph_map entries are created with FT2Font.get_path() and are
thus already arrays; no need to convert them again.
- We can always extend verts and codes regardless of whether verts1 is
empty (extend will just be a noop in that case); empty verts should be
exceptional anyways.1 parent 6b2d3f2 commit 0f757d2
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 122 | + | |
| 123 | + | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
| |||
0 commit comments