diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2011-08-22 00:00:44 +0000 |
|---|---|---|
| committer | Felipe C. da S. Sanches <juca@members.fsf.org> | 2011-08-22 00:00:44 +0000 |
| commit | 556939f7b99b35e4f7f66a01af4e0428af476e11 (patch) | |
| tree | 4fa6c830ca18e50bcb678ec854f3efb2f9d448f3 | |
| parent | add boolead option to load only the first 30 glyphs from an SVGFont (otherwis... (diff) | |
| download | inkscape-556939f7b99b35e4f7f66a01af4e0428af476e11.tar.gz inkscape-556939f7b99b35e4f7f66a01af4e0428af476e11.zip | |
svgfont2layers extension: glyph layers (except the first one) are innitially hidden
(bzr r10568)
| -rw-r--r-- | share/extensions/svgfont2layers.py | 6 |
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 ############################ |
