From 5ca6862a87ae3ee313c453331d35711e53f98e2e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 29 Aug 2013 12:04:37 +0100 Subject: FONT_SIZE_SCALE is for preserving fractional parts, so use it properly. --- framebuffer/fbtk/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framebuffer/fbtk/text.c b/framebuffer/fbtk/text.c index 4749991bb..f3c88baef 100644 --- a/framebuffer/fbtk/text.c +++ b/framebuffer/fbtk/text.c @@ -71,7 +71,7 @@ fb_text_font_style(fbtk_widget_t *widget, int *font_height, int *padding, #endif font_style->family = PLOT_FONT_FAMILY_SANS_SERIF; - font_style->size = px_to_pt(*font_height) * FONT_SIZE_SCALE; + font_style->size = px_to_pt(*font_height * FONT_SIZE_SCALE); font_style->weight = 400; font_style->flags = FONTF_NONE; font_style->background = widget->bg; -- cgit v1.2.3