Clone in a terminal:
Commit b4abe6d
Johan Mattsson - 2015-03-17T19:12:06+00:00
b4abe6d726ed289bef9c72ef4308d8301629cbc8johan.mattsson.m@gmail.com

Fixes the art bug in ttf generation

Changed files (6)

Diff

diff --git a/libbirdfont/CharacterInfo.vala b/libbirdfont/CharacterInfo.valaindex 820d1bf..94f5605 100644--- a/libbirdfont/CharacterInfo.vala+++ b/libbirdfont/CharacterInfo.vala@@ -35,7 +35,7 @@ public class CharacterInfo : GLib.Object { 			ligature = ((!) gc).is_unassigned (); 			name = ((!) gc).get_name (); 			icon.load_font ("icons.bf");-			icon.use_cache (false);+			icon.use_cache (true); 		} 	} 	diff --git a/libbirdfont/Expander.vala b/libbirdfont/Expander.valaindex 3c16f38..82b1e0c 100644--- a/libbirdfont/Expander.vala+++ b/libbirdfont/Expander.vala@@ -232,7 +232,7 @@ public class Expander : GLib.Object { 			if (headline != null) { 				title = new Text (); 				title.set_text ((!) headline);-				title.use_cache (false);+				title.use_cache (true); 				Theme.text_color (title, "Foreground 2"); 				title.set_font_size (17 * Toolbox.get_scale ()); 				title.draw_at_baseline (cr, x, yt + HEADLINE_MARGIN + 13  * Toolbox.get_scale ());diff --git a/libbirdfont/LabelTool.vala b/libbirdfont/LabelTool.valaindex 26eabfa..fdedda0 100644--- a/libbirdfont/LabelTool.vala+++ b/libbirdfont/LabelTool.vala@@ -103,7 +103,7 @@ public class LabelTool : Tool { 			center_y = bgy + (counter_box_height / 2.0 + 5);  			if (is_selected ()) {-				Theme.text_color (glyph_count, "Foreground");+				Theme.text_color (glyph_count, "Foreground 1"); 			} else { 				Theme.text_color (glyph_count, "Foreground Inverted"); 			}diff --git a/libbirdfont/OpenFontFormat/GsubTable.vala b/libbirdfont/OpenFontFormat/GsubTable.valaindex ef751e2..b55b30c 100644--- a/libbirdfont/OpenFontFormat/GsubTable.vala+++ b/libbirdfont/OpenFontFormat/GsubTable.vala@@ -73,14 +73,15 @@ public class GsubTable : OtfTable { 		contextual = new LigatureSetList.context (glyf_table); 		 		clig_subtable = get_ligature_subtable (clig);-		chained_context = get_chaining_contextual_substition_subtable ();-		chained_ligatures = get_ligature_subtable (contextual);+		// FIXME: put back contextual ligatures+		//chained_context = get_chaining_contextual_substition_subtable ();+		//chained_ligatures = get_ligature_subtable (contextual); 		 		// lookup table-		fd.add_ushort (3); // number of lookups+		fd.add_ushort (1); // number of lookups FIXME: should be 3 		fd.add_ushort (8); // offset to lookup 1-		fd.add_ushort (16); // offset to lookup 2-		fd.add_ushort (24); // offset to lookup 3+		//fd.add_ushort (16); // offset to lookup 2+		//fd.add_ushort (24); // offset to lookup 3  		length = 0; 		fd.add_ushort (4); // lookup type @@ -89,6 +90,7 @@ public class GsubTable : OtfTable { 		fd.add_ushort (24 + length); // array of offsets to subtable 		length += (uint16) clig_subtable.length_with_padding (); +/* 		fd.add_ushort (6); // lookup type  		fd.add_ushort (0); // lookup flags 		fd.add_ushort (1); // number of subtables@@ -100,10 +102,10 @@ public class GsubTable : OtfTable { 		fd.add_ushort (1); // number of subtables 		fd.add_ushort (8 + length); // array of offsets to subtable 		length += (uint16) chained_ligatures.length_with_padding ();-		+*/		 		fd.append (clig_subtable);-		fd.append (chained_context);-		fd.append (chained_ligatures);+		// fd.append (chained_context);+		// fd.append (chained_ligatures); 		 		fd.pad (); 		diff --git a/libbirdfont/OverViewItem.vala b/libbirdfont/OverViewItem.valaindex fce12e0..8f18ed8 100644--- a/libbirdfont/OverViewItem.vala+++ b/libbirdfont/OverViewItem.vala@@ -35,12 +35,18 @@ public class OverViewItem : GLib.Object {  	public static double glyph_scale = 1.0; 	+	Text icon;+	 	public OverViewItem (GlyphCollection? glyphs, unichar character, double x, double y) {	 		this.x = x; 		this.y = y; 		this.character = character; 		this.glyphs = glyphs; 		this.info = new CharacterInfo (character, glyphs);++		icon = new Text ("dropdown_menu", 17);+		icon.load_font ("icons.bf");+		icon.use_cache (true); 	} 	 	public string get_name () {@@ -268,16 +274,11 @@ public class OverViewItem : GLib.Object { 	private void draw_menu (Context cr) { 		GlyphCollection g; 		DropMenu menu;-		Text icon; 				 		if (glyphs == null) { 			return; 		} 		-		icon = new Text ("dropdown_menu", 17);-		icon.load_font ("icons.bf");-		icon.use_cache (true);-		 		if (selected) { 			Theme.text_color (icon, "Overview Selected Foreground"); 		} else {diff --git a/libbirdfont/Tool.vala b/libbirdfont/Tool.valaindex 580241b..b451fce 100644--- a/libbirdfont/Tool.vala+++ b/libbirdfont/Tool.vala@@ -190,7 +190,7 @@ public class Tool : Widget { 		icon_file = Theme.get_icon_file (); 		icon_font = new Text ((!) name); 		found = icon_font.load_font (icon_file);-		icon_font.use_cache (false);+		icon_font.use_cache (true); 		icon_font.set_font_size (35); 		 		if (!found) {

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112