diff options
| author | theAdib <theAdib@users.sourceforge.net> | 2009-05-12 20:49:28 +0000 |
|---|---|---|
| committer | theAdib <theAdib@users.sourceforge.net> | 2009-05-12 20:49:28 +0000 |
| commit | 97c015e9f13c9f039d87a7cb9476f8ace6b00197 (patch) | |
| tree | d076ff765aab6194574aa6a8adb882280a9d0b58 /src/extension/internal/cairo-render-context.cpp | |
| parent | Spanish translation update by Lucas Vieites (diff) | |
| download | inkscape-97c015e9f13c9f039d87a7cb9476f8ace6b00197.tar.gz inkscape-97c015e9f13c9f039d87a7cb9476f8ace6b00197.zip | |
BUG 284680 convert text to paths on cairo output
(bzr r7872)
Diffstat (limited to 'src/extension/internal/cairo-render-context.cpp')
| -rw-r--r-- | src/extension/internal/cairo-render-context.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp index e10b637f3..e9ac98df8 100644 --- a/src/extension/internal/cairo-render-context.cpp +++ b/src/extension/internal/cairo-render-context.cpp @@ -1459,10 +1459,16 @@ CairoRenderContext::_showGlyphs(cairo_t *cr, PangoFont *font, std::vector<CairoG i++; } - if (is_stroke || _is_texttopath) + if (is_stroke) { cairo_glyph_path(cr, glyphs, num_glyphs - num_invalid_glyphs); - else - cairo_show_glyphs(cr, glyphs, num_glyphs - num_invalid_glyphs); + } else { + if (_is_texttopath) { + cairo_glyph_path(cr, glyphs, num_glyphs - num_invalid_glyphs); + cairo_fill_preserve(cr); + } else { + cairo_show_glyphs(cr, glyphs, num_glyphs - num_invalid_glyphs); + } + } if (num_glyphs > GLYPH_ARRAY_SIZE) g_free(glyphs); |
