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
authormasayuki@d-toybox.com
Tue, 03 Apr 2007 22:10:56 -0700
changeset 327 cdec191e0c0c05fe2550db569a59b891fce0e920
parent 326 8815aab3c25f9f617e59290e1ba58a236ef122ab
child 328 5daff4efaed7c2bf742063ea16ffd1dec8fec77b
push idunknown
push userunknown
push dateunknown
reviewersvlad
bugs333126
milestone1.9a4pre
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
gfx/cairo/cairo/src/cairo-features.h.in
gfx/cairo/cairo/test/Makefile.in
--- a/configure.in
+++ b/configure.in
@@ -7238,16 +7238,17 @@ if test "$MOZ_SVG" -o "$MOZ_ENABLE_CANVA
        AC_DEFINE(HAVE_UINT64_T)
 
        # Define macros for cairo-features.h
        if test "$MOZ_X11"; then
            XLIB_SURFACE_FEATURE="#define CAIRO_HAS_XLIB_SURFACE 1"
            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
        if test "$MOZ_WIDGET_TOOLKIT" = "mac" -o "$MOZ_WIDGET_TOOLKIT" = "cocoa"; then
            QUARTZ_SURFACE_FEATURE="#define CAIRO_HAS_QUARTZ_SURFACE 1"
            ATSUI_FONT_FEATURE="#define CAIRO_HAS_ATSUI_FONT 1"
        fi
        if test "$MOZ_WIDGET_TOOLKIT" = "windows"; then
@@ -7290,16 +7291,17 @@ if test "$MOZ_SVG" -o "$MOZ_ENABLE_CANVA
        AC_SUBST(NQUARTZ_SURFACE_FEATURE)
        AC_SUBST(XCB_SURFACE_FEATURE)
        AC_SUBST(WIN32_SURFACE_FEATURE)
        AC_SUBST(OS2_SURFACE_FEATURE)
        AC_SUBST(BEOS_SURFACE_FEATURE)
        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)
 
        if test "$_WIN32_MSVC"; then
            MOZ_CAIRO_LIBS='$(DEPTH)/gfx/cairo/cairo/src/mozcairo.lib $(DEPTH)/gfx/cairo/libpixman/src/mozlibpixman.lib'
            if test "$MOZ_ENABLE_GLITZ"; then
                MOZ_CAIRO_LIBS="$MOZ_CAIRO_LIBS "'$(DEPTH)/gfx/cairo/glitz/src/mozglitz.lib $(DEPTH)/gfx/cairo/glitz/src/wgl/mozglitzwgl.lib'
--- a/gfx/cairo/cairo/src/cairo-features.h.in
+++ b/gfx/cairo/cairo/src/cairo-features.h.in
@@ -76,15 +76,17 @@
 @BEOS_SURFACE_FEATURE@
 
 @GLITZ_SURFACE_FEATURE@
 
 @DIRECTFB_SURFACE_FEATURE@
 
 @FT_FONT_FEATURE@
 
+@FT_HAS_GS_EMBOLDEN@
+
 @WIN32_FONT_FEATURE@
 
 @ATSUI_FONT_FEATURE@
 
 @PNG_FUNCTIONS_FEATURE@
 
 #endif
--- a/gfx/cairo/cairo/test/Makefile.in
+++ b/gfx/cairo/cairo/test/Makefile.in
@@ -178,16 +178,17 @@ F77 = @F77@
 FFLAGS = @FFLAGS@
 FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
 FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
 FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
 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@
 GLITZ_SURFACE_FEATURE = @GLITZ_SURFACE_FEATURE@
 GTK_DOC_USE_LIBTOOL_FALSE = @GTK_DOC_USE_LIBTOOL_FALSE@
 GTK_DOC_USE_LIBTOOL_TRUE = @GTK_DOC_USE_LIBTOOL_TRUE@
 HTML_DIR = @HTML_DIR@
 INSTALL_DATA = @INSTALL_DATA@