From 3fa0ed01c04355e4b9b1ba1befdf46e8bc3f1807 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 13 Oct 2014 02:34:10 +0100 Subject: add API to set DPI --- atari/plot/font_freetype.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'atari') diff --git a/atari/plot/font_freetype.c b/atari/plot/font_freetype.c index 7ca2d8aba..13250d4e1 100755 --- a/atari/plot/font_freetype.c +++ b/atari/plot/font_freetype.c @@ -93,8 +93,6 @@ fantasy.ttf => Fantasy #define CACHE_MIN_SIZE (100 * 1024) #define BOLD_WEIGHT 700 -extern css_fixed nscss_screen_dpi; - extern unsigned long atari_plot_flags; extern int atari_plot_vdi_handle; @@ -245,11 +243,11 @@ static void ft_fill_scalar(const plot_font_style_t *fstyle, FTC_Scaler srec) srec->width = srec->height = (fstyle->size * 64) / FONT_SIZE_SCALE; srec->pixel = 0; - /* calculate x/y resolution, when nscss_screen_dpi isn't available */ - /* 72 is an good value. */ - /* TODO: because nscss_screen_dpi is to large, calculate that value */ - /* by VDI values. */ - srec->x_res = srec->y_res = 72; // FIXTOINT(nscss_screen_dpi); + /* calculate x/y resolution, when browser_get_dpi() isn't available */ + /* 72 is an good value. */ + /* TODO: because browser_get_dpi() is to large, calculate that value */ + /* by VDI values. */ + srec->x_res = srec->y_res = 72; // browser_get_dpi(); } static FT_Glyph ft_getglyph(const plot_font_style_t *fstyle, uint32_t ucs4) -- cgit v1.2.3