diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-07-31 11:34:43 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-07-31 11:34:43 +0000 |
| commit | 17b55c211badb915bad70a4701391512e027ad00 (patch) | |
| tree | 68253126633ff7483262429ecb26785d28e9f500 /src/extension/internal/pdf-cairo.cpp | |
| parent | Add pango-cairo compilation for win32 (diff) | |
| download | inkscape-17b55c211badb915bad70a4701391512e027ad00.tar.gz inkscape-17b55c211badb915bad70a4701391512e027ad00.zip | |
Make sure file compiles with or without HAVE_PANGO_CAIRO
(bzr r1532)
Diffstat (limited to 'src/extension/internal/pdf-cairo.cpp')
| -rw-r--r-- | src/extension/internal/pdf-cairo.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/extension/internal/pdf-cairo.cpp b/src/extension/internal/pdf-cairo.cpp index 9081d0532..9dba2195b 100644 --- a/src/extension/internal/pdf-cairo.cpp +++ b/src/extension/internal/pdf-cairo.cpp @@ -749,6 +749,8 @@ PrintCairoPDF::image(Inkscape::Extension::Print *mod, guchar *px, unsigned int w #define GLYPH_ARRAY_SIZE 64 +#ifndef HAVE_PANGO_CAIRO + NR::Point PrintCairoPDF::draw_glyphs(cairo_t *cr, NR::Point p, PangoFont *font, PangoGlyphString *glyph_string, bool vertical, bool stroke) @@ -791,6 +793,9 @@ PrintCairoPDF::draw_glyphs(cairo_t *cr, NR::Point p, PangoFont *font, PangoGlyph return NR::Point(x_offset, y_offset); } +#endif + + unsigned int PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point p, @@ -914,11 +919,12 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point cairo_stroke(cr); } - cairo_font_face_destroy(font_face); cairo_restore(cr); #ifndef HAVE_PANGO_CAIRO + cairo_font_face_destroy(font_face); + if (dirty_pattern) { FcPatternDel(fc_pattern, FC_VERTICAL_LAYOUT); FcPatternAddBool(fc_pattern, FC_VERTICAL_LAYOUT, FcFalse); |
