File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,10 @@ function getGlyphIDs() {
41
41
$ glyphIDs [] = $ _component ->glyphIndex ;
42
42
43
43
$ _glyph = $ this ->table ->data [$ _component ->glyphIndex ];
44
- $ glyphIDs = array_merge ($ glyphIDs , $ _glyph ->getGlyphIDs ());
44
+
45
+ if ($ _glyph !== $ this ) {
46
+ $ glyphIDs = array_merge ($ glyphIDs , $ _glyph ->getGlyphIDs ());
47
+ }
45
48
}
46
49
47
50
return $ glyphIDs ;
@@ -224,10 +227,14 @@ public function getSVGContours() {
224
227
$ glyphs = $ glyph_data ->data ;
225
228
226
229
foreach ($ this ->components as $ component ) {
227
- $ contours [] = array (
228
- "contours " => $ glyphs [$ component ->glyphIndex ]->getSVGContours (),
229
- "transform " => $ component ->getMatrix (),
230
- );
230
+ $ _glyph = $ glyphs [$ component ->glyphIndex ];
231
+
232
+ if ($ _glyph !== $ this ) {
233
+ $ contours [] = array (
234
+ "contours " => $ _glyph ->getSVGContours (),
235
+ "transform " => $ component ->getMatrix (),
236
+ );
237
+ }
231
238
}
232
239
233
240
return $ contours ;
You can’t perform that action at this time.
0 commit comments