From 0af7ca1a607f81edd746139bf5baec99a4f20020 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sun, 30 Jan 2011 21:48:22 +0000 Subject: Rearanged includes, fixed VDI style for dashed plots. svn path=/trunk/netsurf/; revision=11537 --- atari/plot/font_freetype.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'atari/plot/font_freetype.c') diff --git a/atari/plot/font_freetype.c b/atari/plot/font_freetype.c index 0a1addfdf..ff2be22ee 100755 --- a/atari/plot/font_freetype.c +++ b/atari/plot/font_freetype.c @@ -17,27 +17,13 @@ * along with this program. If not, see . */ -#include -#include -#include -#include -#include -#include -#include + #include #include FT_CACHE_H -#include "desktop/plot_style.h" -#include "image/bitmap.h" -#include "atari/bitmap.h" #include "atari/plot/plotter.h" #include "atari/plot/font_freetype.h" -#include "atari/gui.h" -#include "atari/font.h" -#include "atari/options.h" -#include "atari/findfile.h" -#include "utils/utf8.h" -#include "utils/log.h" + #define DEJAVU_PATH "/usr/share/fonts/truetype/ttf-dejavu/" @@ -65,7 +51,7 @@ static int str_width( FONT_PLOTTER self,const plot_font_style_t *fstyle, static int str_split( FONT_PLOTTER self, const plot_font_style_t *fstyle, const char *string, size_t length,int x, size_t *char_offset, int *actual_x ); -static int pixel_position( FONT_PLOTTER self, const plot_font_style_t *fstyle, +static int pixel_pos( FONT_PLOTTER self, const plot_font_style_t *fstyle, const char *string, size_t length,int x, size_t *char_offset, int *actual_x ); static int text( FONT_PLOTTER self, int x, int y, const char *text, @@ -361,7 +347,7 @@ static int str_split( FONT_PLOTTER self, const plot_font_style_t *fstyle, } -static int pixel_position( FONT_PLOTTER self, const plot_font_style_t *fstyle, +static int pixel_pos( FONT_PLOTTER self, const plot_font_style_t *fstyle, const char *string, size_t length, int x, size_t *char_offset, int *actual_x) { @@ -490,7 +476,7 @@ int ctor_font_plotter_freetype( FONT_PLOTTER self ) self->dtor = dtor; self->str_width = str_width; self->str_split = str_split; - self->pixel_position = pixel_position; + self->pixel_pos = pixel_pos; self->text = text; LOG(("%s: %s\n", (char*)__FILE__, __FUNCTION__)); if( !init ) { -- cgit v1.2.3