From 4755c2eca71e19f2e824ac3508b537e66859ea27 Mon Sep 17 00:00:00 2001 From: miklosh Date: Sun, 1 Oct 2006 13:56:17 +0000 Subject: [PATCH] Initial commit of Cairo renderer for PDF export --- src/libnrtype/Layout-TNG.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/libnrtype/Layout-TNG.h b/src/libnrtype/Layout-TNG.h index 072aef878..48b01eae5 100755 --- a/src/libnrtype/Layout-TNG.h +++ b/src/libnrtype/Layout-TNG.h @@ -19,6 +19,18 @@ #include #include +#ifdef HAVE_CAIRO_PDF +namespace Inkscape { + namespace Extension { + namespace Internal { + class CairoRenderContext; + } + } +} + +using Inkscape::Extension::Internal::CairoRenderContext; +#endif + class SPStyle; class Shape; class NRArenaGroup; @@ -326,6 +338,13 @@ public: */ void print(SPPrintContext *ctx, NRRect const *pbox, NRRect const *dbox, NRRect const *bbox, NRMatrix const &ctm) const; +#ifdef HAVE_CAIRO_PDF + /** Renders all the glyphs to the given Cairo rendering context. + \param ctx The Cairo rendering context to be used + */ + void showGlyphs(CairoRenderContext *ctx) const; +#endif + /** debug and unit test method. Creates a textual representation of the contents of this object. The output is designed to be both human-readable and comprehensible when diffed with a known-good dump. */ -- 2.30.2