summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@users.sourceforge.net>2006-12-14 10:14:48 +0000
committerClaudio Ciccani <klan@users.sourceforge.net>2006-12-14 10:14:48 +0000
commit60736763897ef57e53327f5b2cdc4b4208deb6b0 (patch)
tree99fdd1820586c6eab8180ad6a4a424121c316dc0 /src
parent25d5d0647f9da129576373972ad53e107743eeb4 (diff)
downloadxine-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
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/osd.c8
1 files changed, 7 insertions, 1 deletions
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;
}