File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public function getGlyphIDs($gids = array()) {
48
48
return array_unique (array_merge ($ gids , $ glyphIDs ));
49
49
}
50
50
51
- public function toHTML () {
51
+ public function toHTML ($ n = 500 ) {
52
52
$ max = 160 ;
53
53
$ font = $ this ->getFont ();
54
54
@@ -74,8 +74,6 @@ public function toHTML() {
74
74
$ height = round ($ height / $ ratio );
75
75
}
76
76
77
- $ n = 500 ;
78
-
79
77
$ s = "<h3> " . "Only the first $ n simple glyphs are shown ( " . count ($ this ->data ) . " total)
80
78
<div class='glyph-view simple'>Simple glyph</div>
81
79
<div class='glyph-view composite'>Composite glyph</div>
@@ -111,6 +109,11 @@ public function toHTML() {
111
109
$ name = isset ($ names [$ g ]) ? $ names [$ g ] : sprintf ("uni%04x " , $ char );
112
110
$ char = $ char ? "&# {$ glyphIndexArray [$ g ]}; " : "" ;
113
111
112
+ if ($ char === "" && empty ($ shape ["SVGContours " ])) {
113
+ $ n ++;
114
+ continue ;
115
+ }
116
+
114
117
$ s .= "<div class='glyph-view $ type' id='glyph- $ g'>
115
118
<span class='glyph-id'> $ g</span>
116
119
<span class='char'> $ char</span>
You can’t perform that action at this time.
0 commit comments