summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/extensions/svgfont2layers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/extensions/svgfont2layers.py b/share/extensions/svgfont2layers.py
index 7d8c888e4..4fc8c8058 100644
--- a/share/extensions/svgfont2layers.py
+++ b/share/extensions/svgfont2layers.py
@@ -82,6 +82,7 @@ class SVGFont2Layers(inkex.Effect):
#TODO: missing-glyph
glyphs = font.findall(inkex.addNS('glyph', 'svg'))
+ first_glyph = True
for glyph in glyphs:
unicode_char = glyph.get("unicode")
if unicode_char is None:
@@ -91,6 +92,11 @@ class SVGFont2Layers(inkex.Effect):
layer.set(inkex.addNS('label', 'inkscape'), "GlyphLayer-" + unicode_char)
layer.set(inkex.addNS('groupmode', 'inkscape'), "layer")
+ #glyph layers (except the first one) are innitially hidden
+ if not first_glyph:
+ layer.set("style", "display:none")
+ first_glyph = False
+
#TODO: interpret option 1
############################