diff --git a/configure.in b/configure.in index 514fa95f19e..e5636d259f2 100644 --- a/configure.in +++ b/configure.in @@ -6992,6 +6992,7 @@ if test "$MOZ_SVG" -o "$MOZ_ENABLE_CANVAS" -o "$MOZ_ENABLE_CAIRO_GFX" ; then if test "$MOZ_WIDGET_TOOLKIT" = "os2"; then OS2_SURFACE_FEATURE="#define CAIRO_HAS_OS2_SURFACE 1" FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1" + PDF_SURFACE_FEATURE="#define CAIRO_HAS_PDF_SURFACE 1" MOZ_ENABLE_CAIRO_FT=1 CAIRO_FT_CFLAGS="-I${MZFTCFGFT2}/include" CAIRO_FT_LIBS="-L${MZFTCFGFT2}/lib -lmozft -lmzfntcfg" diff --git a/gfx/cairo/cairo/src/Makefile.in b/gfx/cairo/cairo/src/Makefile.in index 4ec0590832b..374f28a1cb9 100644 --- a/gfx/cairo/cairo/src/Makefile.in +++ b/gfx/cairo/cairo/src/Makefile.in @@ -138,6 +138,13 @@ endif ifeq ($(MOZ_WIDGET_TOOLKIT),os2) CSRCS += cairo-os2-surface.c EXPORTS += cairo-os2.h cairo-os2-private.h +CSRCS += cairo-base85-stream.c \ + cairo-pdf-surface.c \ + cairo-type1-subset.c \ + cairo-type1-fallback.c \ + cairo-truetype-subset.c \ + cairo-cff-subset.c +EXPORTS += cairo-pdf.h endif ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) diff --git a/gfx/src/thebes/nsThebesDeviceContext.cpp b/gfx/src/thebes/nsThebesDeviceContext.cpp index cb15bd5364d..9c5990fcce7 100644 --- a/gfx/src/thebes/nsThebesDeviceContext.cpp +++ b/gfx/src/thebes/nsThebesDeviceContext.cpp @@ -76,6 +76,7 @@ static nsSystemFontsWin *gSystemFonts = nsnull; #include #elif defined(XP_OS2) #include "nsSystemFontsOS2.h" +#include "gfxPDFSurface.h" static nsSystemFontsOS2 *gSystemFonts = nsnull; #elif defined(XP_BEOS) #include "nsSystemFontsBeOS.h" @@ -673,7 +674,7 @@ nsThebesDeviceContext::CalcPrintingSize() size = reinterpret_cast(mPrintingSurface.get())->GetSize(); break; -#if defined(MOZ_ENABLE_GTK2) || defined(XP_WIN) +#if defined(MOZ_ENABLE_GTK2) || defined(XP_WIN) || defined(XP_OS2) case gfxASurface::SurfaceTypePDF: inPoints = PR_TRUE; size = reinterpret_cast(mPrintingSurface.get())->GetSize(); diff --git a/gfx/thebes/public/Makefile.in b/gfx/thebes/public/Makefile.in index d41c8db30ee..6d1377867d5 100644 --- a/gfx/thebes/public/Makefile.in +++ b/gfx/thebes/public/Makefile.in @@ -65,6 +65,7 @@ EXPORTS += gfxOS2Surface.h \ gfxOS2Platform.h \ gfxOS2Fonts.h \ $(NULL) +EXPORTS += gfxPDFSurface.h endif ifeq ($(MOZ_WIDGET_TOOLKIT),beos) diff --git a/gfx/thebes/src/Makefile.in b/gfx/thebes/src/Makefile.in index c313b121a3e..f763ed8f26b 100644 --- a/gfx/thebes/src/Makefile.in +++ b/gfx/thebes/src/Makefile.in @@ -74,6 +74,7 @@ CPPSRCS += gfxOS2Fonts.cpp \ nsUnicodeRange.cpp \ gfxFontconfigUtils.cpp \ $(NULL) +CPPSRCS += gfxPDFSurface.cpp EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) REQUIRES += uconv endif