mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 15:29:45 +03:00
FONT_SIZE_SCALE is for preserving fractional parts, so use it properly.
This commit is contained in:
parent
7a25b6aaee
commit
5ca6862a87
@ -71,7 +71,7 @@ fb_text_font_style(fbtk_widget_t *widget, int *font_height, int *padding,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
font_style->family = PLOT_FONT_FAMILY_SANS_SERIF;
|
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->weight = 400;
|
||||||
font_style->flags = FONTF_NONE;
|
font_style->flags = FONTF_NONE;
|
||||||
font_style->background = widget->bg;
|
font_style->background = widget->bg;
|
||||||
|
Loading…
Reference in New Issue
Block a user