summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
-rw-r--r--src/xine-engine/osd.c8
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;
}