From 13a164aaf228248d76b12451b2ebe16e82a516d4 Mon Sep 17 00:00:00 2001 From: "masayuki@d-toybox.com" Date: Tue, 3 Apr 2007 22:10:56 -0700 Subject: [PATCH] Bug 333126 Bold/Italic text isn't displayed as bold/italic with cairo-gtk2 build if the font is synthesis font. (only enable enbolden flag in cairo) r=vlad --- configure.in | 2 ++ gfx/cairo/cairo/src/cairo-features.h.in | 2 ++ gfx/cairo/cairo/test/Makefile.in | 1 + 3 files changed, 5 insertions(+) diff --git a/configure.in b/configure.in index f86af0da3ff..86f7947e1d6 100644 --- a/configure.in +++ b/configure.in @@ -7243,6 +7243,7 @@ if test "$MOZ_SVG" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_GFX" ; then PS_SURFACE_FEATURE="#define CAIRO_HAS_PS_SURFACE 1" PDF_SURFACE_FEATURE="#define CAIRO_HAS_PDF_SURFACE 1" FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1" + FT_HAS_GS_EMBOLDEN="#define HAVE_FT_GLYPHSLOT_EMBOLDEN 1" MOZ_ENABLE_CAIRO_FT=1 CAIRO_FT_CFLAGS="$FT2_CFLAGS" fi @@ -7295,6 +7296,7 @@ if test "$MOZ_SVG" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_GFX" ; then AC_SUBST(GLITZ_SURFACE_FEATURE) AC_SUBST(DIRECTFB_SURFACE_FEATURE) AC_SUBST(FT_FONT_FEATURE) + AC_SUBST(FT_HAS_GS_EMBOLDEN) AC_SUBST(WIN32_FONT_FEATURE) AC_SUBST(ATSUI_FONT_FEATURE) AC_SUBST(PNG_FUNCTIONS_FEATURE) diff --git a/gfx/cairo/cairo/src/cairo-features.h.in b/gfx/cairo/cairo/src/cairo-features.h.in index 84fb3e5a8ef..ae5315cd5d8 100644 --- a/gfx/cairo/cairo/src/cairo-features.h.in +++ b/gfx/cairo/cairo/src/cairo-features.h.in @@ -81,6 +81,8 @@ @FT_FONT_FEATURE@ +@FT_HAS_GS_EMBOLDEN@ + @WIN32_FONT_FEATURE@ @ATSUI_FONT_FEATURE@ diff --git a/gfx/cairo/cairo/test/Makefile.in b/gfx/cairo/cairo/test/Makefile.in index f2bbb663ad4..461847e71f0 100644 --- a/gfx/cairo/cairo/test/Makefile.in +++ b/gfx/cairo/cairo/test/Makefile.in @@ -183,6 +183,7 @@ FREETYPE_CONFIG = @FREETYPE_CONFIG@ FREETYPE_LIBS = @FREETYPE_LIBS@ FREETYPE_REQUIRES = @FREETYPE_REQUIRES@ FT_FONT_FEATURE = @FT_FONT_FEATURE@ +FT_HAS_GS_EMBOLDEN = @FT_HAS_GS_EMBOLDEN@ GLITZ_CFLAGS = @GLITZ_CFLAGS@ GLITZ_LIBS = @GLITZ_LIBS@ GLITZ_REQUIRES = @GLITZ_REQUIRES@