FONT_SIZE_SCALE is for preserving fractional parts, so use it properly.

This commit is contained in:
Michael Drake 2013-08-29 12:04:37 +01:00
parent 7a25b6aaee
commit 5ca6862a87

View File

@ -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;