From 556939f7b99b35e4f7f66a01af4e0428af476e11 Mon Sep 17 00:00:00 2001 From: Felipe Corr??a da Silva Sanches Date: Mon, 22 Aug 2011 02:00:44 +0200 Subject: svgfont2layers extension: glyph layers (except the first one) are innitially hidden (bzr r10568) --- share/extensions/svgfont2layers.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 ############################ -- cgit v1.2.3