Commit bebad90
Fix overview color and glyph alignment
Changed files (2)
Diff
@@ -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;@@ -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) {