[OS/2] Bug 407524: Enable PDF surface on OS/2, r=ted.mielczarek
This commit is contained in:
Родитель
fad54cd8c7
Коммит
1d42cb1723
|
@ -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"
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -76,6 +76,7 @@ static nsSystemFontsWin *gSystemFonts = nsnull;
|
|||
#include <usp10.h>
|
||||
#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<gfxImageSurface*>(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<gfxPDFSurface*>(mPrintingSurface.get())->GetSize();
|
||||
|
|
|
@ -65,6 +65,7 @@ EXPORTS += gfxOS2Surface.h \
|
|||
gfxOS2Platform.h \
|
||||
gfxOS2Fonts.h \
|
||||
$(NULL)
|
||||
EXPORTS += gfxPDFSurface.h
|
||||
endif
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
||||
|
|
|
@ -74,6 +74,7 @@ CPPSRCS += gfxOS2Fonts.cpp \
|
|||
nsUnicodeRange.cpp \
|
||||
gfxFontconfigUtils.cpp \
|
||||
$(NULL)
|
||||
CPPSRCS += gfxPDFSurface.cpp
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS)
|
||||
REQUIRES += uconv
|
||||
endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче