Commit e79f7eb
fix font rename on export bug
Changed files (2)
Diff
@@ -194,11 +194,17 @@ class ExportTool : Tool { src: url('"""); os.put_string (@"$(name).svg#$(name)"); os.put_string ("""') format('svg'); } +""");++if (Supplement.experimental) { + os.put_string (""" @font-face { font-family: '"""); os.put_string (@"$(name)"); os.put_string ("""TTF'; src: url('"""); os.put_string (@"$(name).ttf"); os.put_string ("""') format('truetype');- }- + } """);+}++os.put_string (""" h1 { margin: 0 0 5px 0; color: #afafaf;@@ -229,7 +235,20 @@ class ExportTool : Tool { } div {- font-family: '"""); os.put_string (@"$(name)"); os.put_string ("""SVG', '"""); os.put_string (@"$(name)"); os.put_string ("""TTF';+ font-family: """);+ + os.put_string ("'");+ os.put_string (@"$(name)");+ os.put_string ("SVG'");+ + if (Supplement.experimental) {+ os.put_string (", '");+ os.put_string (@"$(name)");+ os.put_string ("TTF'");+ } ++ os.put_string (";");+ os.put_string (""" margin: 0 0 30px 0; } @@ -696,9 +696,6 @@ class Font : GLib.Object { otf_font = false; - font_file = "";- name = "typeface";- while (glyph_names.length () > 0) { glyph_names.remove_link (glyph_names.first ()); }