Clone in a terminal:
Commit bebad90
Johan Mattsson - 2015-12-18T19:12:29+00:00
bebad900e406b271b1d0043ad6cc723216f6d0a0johan.mattsson.m@gmail.com

Fix overview color and glyph alignment

Changed files (2)

Diff

diff --git a/libbirdfont/OverViewItem.vala b/libbirdfont/OverViewItem.valaindex 8ec374f..6210835 100644--- a/libbirdfont/OverViewItem.vala+++ b/libbirdfont/OverViewItem.vala@@ -170,11 +170,11 @@ public class OverViewItem : GLib.Object { 			bool glyph_found; 			string? font_file; 			-			Test t1 = new Test.time("both");+			Theme.color (c, "Overview Glyph");+			 			font_file = FontCache.fallback_font.get_default_font_file ();	 			glyph_found = draw_overview_glyph (c, (!) font_file, width, height, character); 			-			Test t2 = new Test.time("fall"); 			if (!glyph_found) { 				font_file = find_font (FallbackFont.font_config, (!) character.to_string ()); 				@@ -183,9 +183,6 @@ public class OverViewItem : GLib.Object { 				} 			} 			-			t2.print();-			t1.print();-			 			c.restore (); 			 			cache = s;diff --git a/libbirdfont/overview_glyph.c b/libbirdfont/overview_glyph.cindex b30d617..f6c6e60 100644--- a/libbirdfont/overview_glyph.c+++ b/libbirdfont/overview_glyph.c@@ -55,7 +55,7 @@ gboolean draw_overview_glyph (cairo_t* context, const char* font_file, gdouble w 	}
 
 	units_per_em = face->units_per_EM;
-	units = (height * 0.7) / units_per_em;
+	units = (height * 0.5) / units_per_em;
 	
 	error = FT_Select_Charmap (face , FT_ENCODING_UNICODE);
 	if (error) {

Contact

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