diff options
author | Claudio Ciccani <klan@users.sourceforge.net> | 2006-12-14 10:14:48 +0000 |
---|---|---|
committer | Claudio Ciccani <klan@users.sourceforge.net> | 2006-12-14 10:14:48 +0000 |
commit | 60736763897ef57e53327f5b2cdc4b4208deb6b0 (patch) | |
tree | 99fdd1820586c6eab8180ad6a4a424121c316dc0 | |
parent | 25d5d0647f9da129576373972ad53e107743eeb4 (diff) | |
download | xine-lib-60736763897ef57e53327f5b2cdc4b4208deb6b0.tar.gz xine-lib-60736763897ef57e53327f5b2cdc4b4208deb6b0.tar.bz2 |
Added configure option --enable-antialing (disabled by default because
RLE encoded antialiased fonts don't look good).
CVS patchset: 8415
CVS date: 2006/12/14 10:14:48
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | src/xine-engine/osd.c | 8 |
2 files changed, 18 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c26a9e337..741d31a47 100644 --- a/configure.ac +++ b/configure.ac @@ -1955,6 +1955,17 @@ if test "x$enable_mmap" = "xyes"; then fi dnl --------------------------------------------- +dnl antialising support +dnl --------------------------------------------- + +AC_ARG_ENABLE([antialiasing], + AS_HELP_STRING([--enable-antialiasing], [enable font antialiasing])) + +if test "x$enable_antialiasing" = "xyes"; then + AC_DEFINE(ENABLE_ANTIALIASING,1,[Define this to 1 to enable font antialising.]) +fi + +dnl --------------------------------------------- dnl ip_mreqn dnl --------------------------------------------- diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c index b5f45d0af..210bcf26e 100644 --- a/src/xine-engine/osd.c +++ b/src/xine-engine/osd.c @@ -102,6 +102,12 @@ # define KERNING_DEFAULT ft_kerning_default #endif +#ifdef ENABLE_ANTIALIASING +# define FT_LOAD_FLAGS FT_LOAD_DEFAULT +#else +# define FT_LOAD_FLAGS (FT_LOAD_DEFAULT | FT_LOAD_NO_HINTING) +#endif + typedef struct osd_fontchar_s { uint16_t code; uint16_t width; @@ -1171,7 +1177,7 @@ static int osd_render_text (osd_object_t *osd, int x1, int y1, } previous = i; - if (FT_Load_Glyph(osd->ft2->face, i, FT_LOAD_DEFAULT)) { + if (FT_Load_Glyph(osd->ft2->face, i, FT_LOAD_FLAGS)) { xprintf(this->stream->xine, XINE_VERBOSITY_LOG, _("osd: error loading glyph\n")); continue; } |