diff options
author | Ole Loots <ole@monochrom.net> | 2013-12-04 02:00:45 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-12-04 02:00:45 +0100 |
commit | a2688fc7a224599bcd44a305b1e6460d3a668e2a (patch) | |
tree | bd383459945f91f9bc41d7dc57afcd7df5978bd2 /atari/plot/plot.c | |
parent | 66af93863dfd2a581bae8b83982b36959dc1b725 (diff) | |
download | netsurf-a2688fc7a224599bcd44a305b1e6460d3a668e2a.tar.gz netsurf-a2688fc7a224599bcd44a305b1e6460d3a668e2a.tar.bz2 |
Recognize scale when plotting fonts
Diffstat (limited to 'atari/plot/plot.c')
-rwxr-xr-x | atari/plot/plot.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/atari/plot/plot.c b/atari/plot/plot.c index 5896a6841..80551f968 100755 --- a/atari/plot/plot.c +++ b/atari/plot/plot.c @@ -2004,7 +2004,14 @@ void plot_set_text_plotter(FONT_PLOTTER font_plotter) static bool plot_text(int x, int y, const char *text, size_t length, const plot_font_style_t *fstyle ) { - fplotter->text(fplotter, x, y, text, length, fstyle); + if (view.scale != 1.0) { + plot_font_style_t newstyle = *fstyle; + newstyle.size = (int)((float)fstyle->size*view.scale); + fplotter->text(fplotter, x, y, text, length, &newstyle); + } else { + fplotter->text(fplotter, x, y, text, length, fstyle); + } + return ( true ); } |