Clone in a terminal:
Commit 24fe8a4
Johan Mattsson - 2015-12-18T17:11:46+00:00
24fe8a4df38d8c443ba6e59d6399142b1189f40ejohan.mattsson.m@gmail.com

Scale all glyphs to the same size in fallback font

Changed files (1)

Diff

diff --git a/libbirdfont/overview_glyph.c b/libbirdfont/overview_glyph.cindex 03881d4..1d079aa 100644--- a/libbirdfont/overview_glyph.c+++ b/libbirdfont/overview_glyph.c@@ -92,9 +92,9 @@ void draw_overview_glyph (cairo_t* context, const char* font_file, gdouble width 
 	cairo_save (context);
 	cairo_font_face_t* cairo_face = cairo_ft_font_face_create_for_ft_face (face, 0);
-		
+	
 	cairo_set_font_face (context, cairo_face);
-	cairo_set_font_size (context, height);
+	cairo_set_font_size (context, height * 0.5);
 	
 	gdouble x = (width - advance) / 2;
 	

Contact

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