summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/pdf-cairo.cpp
diff options
context:
space:
mode:
authormiklosh <miklosh@users.sourceforge.net>2006-07-31 23:18:49 +0000
committermiklosh <miklosh@users.sourceforge.net>2006-07-31 23:18:49 +0000
commit3b56b5d8412f95f43f9aef6790cb0330ee42bd32 (patch)
tree70d69659a9f9f5761158e18ad931b613198b52f6 /src/extension/internal/pdf-cairo.cpp
parentrestructuring whiteboard (diff)
downloadinkscape-3b56b5d8412f95f43f9aef6790cb0330ee42bd32.tar.gz
inkscape-3b56b5d8412f95f43f9aef6790cb0330ee42bd32.zip
change HAVE_PANGO_CAIRO to RENDER_WITH_PANGO_CAIRO
(bzr r1535)
Diffstat (limited to 'src/extension/internal/pdf-cairo.cpp')
-rw-r--r--src/extension/internal/pdf-cairo.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/extension/internal/pdf-cairo.cpp b/src/extension/internal/pdf-cairo.cpp
index c99e0bec8..2cc53154a 100644
--- a/src/extension/internal/pdf-cairo.cpp
+++ b/src/extension/internal/pdf-cairo.cpp
@@ -67,7 +67,7 @@
#include <pango/pangofc-fontmap.h>
-#ifdef HAVE_PANGO_CAIRO
+#ifdef RENDER_WITH_PANGO_CAIRO
#include <pango/pangocairo.h>
#endif
@@ -749,7 +749,7 @@ PrintCairoPDF::image(Inkscape::Extension::Print *mod, guchar *px, unsigned int w
#define GLYPH_ARRAY_SIZE 64
-#ifndef HAVE_PANGO_CAIRO
+#ifndef RENDER_WITH_PANGO_CAIRO
NR::Point
PrintCairoPDF::draw_glyphs(cairo_t *cr, NR::Point p, PangoFont *font, PangoGlyphString *glyph_string,
@@ -814,7 +814,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
// create pango layout and context if needed
if (_layout == NULL) {
-#ifdef HAVE_PANGO_CAIRO
+#ifdef RENDER_WITH_PANGO_CAIRO
//_context = pango_cairo_font_map_create_context(PANGO_CAIRO_FONT_MAP(pango_cairo_font_map_get_default()));
_layout = pango_cairo_create_layout(cr);
#else
@@ -837,7 +837,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
pango_font_description_free(adjusted);
tf->Unref();
-#ifdef HAVE_PANGO_CAIRO
+#ifdef RENDER_WITH_PANGO_CAIRO
pango_cairo_update_layout(cr, _layout);
#else
pango_layout_context_changed(_layout); // is this needed?
@@ -847,7 +847,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
if (line == NULL)
return 0;
-#ifndef HAVE_PANGO_CAIRO
+#ifndef RENDER_WITH_PANGO_CAIRO
// apply the selected font
double size;
PangoLayoutRun *first_run = (PangoLayoutRun *)line->runs->data;
@@ -884,7 +884,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
// set fill style
print_fill_style(cr, style, NULL);
-#ifndef HAVE_PANGO_CAIRO
+#ifndef RENDER_WITH_PANGO_CAIRO
NR::Point cursor(_last_tx, _last_ty);
for (GSList *tmpList = line->runs; tmpList && tmpList->data; tmpList = tmpList->next) {
PangoLayoutRun *run = (PangoLayoutRun *)tmpList->data;
@@ -905,7 +905,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
print_stroke_style(cr, style, NULL);
// paint stroke
-#ifndef HAVE_PANGO_CAIRO
+#ifndef RENDER_WITH_PANGO_CAIRO
NR::Point cursor(_last_tx, _last_ty);
for (GSList *tmpList = line->runs; tmpList && tmpList->data; tmpList = tmpList->next) {
PangoLayoutRun *run = (PangoLayoutRun *)tmpList->data;
@@ -922,7 +922,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
cairo_restore(cr);
-#ifndef HAVE_PANGO_CAIRO
+#ifndef RENDER_WITH_PANGO_CAIRO
cairo_font_face_destroy(font_face);
if (dirty_pattern) {