The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Merge branch 'master' of github.com:johanmattssonm/birdfont

Changes made to libbirdfont/Font.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Font.vala +++ libbirdfont/Font.vala @@ -191,8 +191,21 @@ public string? get_export_directory () { #if MAC return export_directory; - #endif + #else return get_path (); + #endif + } + + public bool has_svg_glyph () { + for (int glyph_index = 0; glyph_index < glyph_name.length (); glyph_index++) { + GlyphCollection gc = glyph_name.nth (glyph_index); + + if (gc.get_current ().has_svg_path ()) { + return true; + } + } + + return false; } public void add_default_characters () {