mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
Scale font sizes by the screen DPI, rather than assuming 72
svn path=/trunk/netsurf/; revision=12014
This commit is contained in:
parent
18970a3be9
commit
a96094205b
@ -24,6 +24,7 @@
|
||||
#include FT_CACHE_H
|
||||
|
||||
#include "css/css.h"
|
||||
#include "css/utils.h"
|
||||
#include "render/font.h"
|
||||
#include "utils/utf8.h"
|
||||
#include "utils/log.h"
|
||||
@ -365,7 +366,7 @@ static void fb_fill_scalar(const plot_font_style_t *fstyle, FTC_Scaler srec)
|
||||
srec->width = srec->height = (fstyle->size * 64) / FONT_SIZE_SCALE;
|
||||
srec->pixel = 0;
|
||||
|
||||
srec->x_res = srec->y_res = 72;
|
||||
srec->x_res = srec->y_res = FIXTOINT(nscss_screen_dpi);
|
||||
}
|
||||
|
||||
FT_Glyph fb_getglyph(const plot_font_style_t *fstyle, uint32_t ucs4)
|
||||
|
Loading…
Reference in New Issue
Block a user