Scale font sizes by the screen DPI, rather than assuming 72

svn path=/trunk/netsurf/; revision=12014
This commit is contained in:
John Mark Bell 2011-03-13 10:51:47 +00:00
parent 18970a3be9
commit a96094205b

View File

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