summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a3cd46)
raw | patch | inline | side by side (parent: 3a3cd46)
author | ishmal <ishmal@users.sourceforge.net> | |
Mon, 31 Jul 2006 11:18:40 +0000 (11:18 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Mon, 31 Jul 2006 11:18:40 +0000 (11:18 +0000) |
src/extension/internal/pdf-cairo.cpp | patch | blob | history | |
src/extension/internal/pdf-cairo.h | patch | blob | history |
index d02df32264bb0100e68fa496777ae6c63c0fbb95..9081d0532be40a76c7d236f511070bf638865a05 100644 (file)
/* Plain Print */
-#define PANGO_ENABLE_BACKEND
-#define PANGO_ENABLE_ENGINE
-
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+#ifndef PANGO_ENABLE_BACKEND
+#define PANGO_ENABLE_BACKEND
+#endif
+
+#ifndef PANGO_ENABLE_ENGINE
+#define PANGO_ENABLE_ENGINE
+#endif
+
+
#include <signal.h>
#include <errno.h>
#include <pango/pangofc-fontmap.h>
-#ifdef USE_PANGO_CAIRO
+#ifdef HAVE_PANGO_CAIRO
#include <pango/pangocairo.h>
#endif
@@ -803,7 +809,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
// create pango layout and context if needed
if (_layout == NULL) {
-#ifdef USE_PANGO_CAIRO
+#ifdef HAVE_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
@@ -836,7 +842,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
if (line == NULL)
return 0;
-#ifndef USE_PANGO_CAIRO
+#ifndef HAVE_PANGO_CAIRO
// apply the selected font
double size;
PangoLayoutRun *first_run = (PangoLayoutRun *)line->runs->data;
@@ -873,7 +879,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
// set fill style
print_fill_style(cr, style, NULL);
-#ifndef USE_PANGO_CAIRO
+#ifndef HAVE_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;
@@ -894,7 +900,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
print_stroke_style(cr, style, NULL);
// paint stroke
-#ifndef USE_PANGO_CAIRO
+#ifndef HAVE_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;
@@ -912,7 +918,7 @@ PrintCairoPDF::text(Inkscape::Extension::Print *mod, char const *text, NR::Point
cairo_restore(cr);
-#ifndef USE_PANGO_CAIRO
+#ifndef HAVE_PANGO_CAIRO
if (dirty_pattern) {
FcPatternDel(fc_pattern, FC_VERTICAL_LAYOUT);
FcPatternAddBool(fc_pattern, FC_VERTICAL_LAYOUT, FcFalse);
index 8239b3e1ff1b3bfc955cf4fde80fb61a6b0ed883..8a7b43f3fda038cd097fef380ecde4d349deb2fd 100644 (file)
* Ted's changes are licensed under the GNU GPL.
*/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "extension/extension.h"
#include "extension/implementation/implementation.h"
#include <set>
void print_fill_style(cairo_t *cr, SPStyle const *const style, NRRect const *pbox);
void print_stroke_style(cairo_t *cr, SPStyle const *style, NRRect const *pbox);
-#ifndef USE_PANGO_CAIRO
+#ifndef HAVE_PANGO_CAIRO
NR::Point draw_glyphs(cairo_t *cr, NR::Point p, PangoFont *font, PangoGlyphString *glyph_string,
bool vertical, bool stroke);
#endif