diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-12 15:21:12 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-12 15:21:12 +0000 |
| commit | e93821409140f74f3c27b3f8a42bda8b16dd4dfe (patch) | |
| tree | 22b89b397781a11e95c256008b6a0bc03315ba02 /src/libnrtype | |
| parent | enable writing "H/h" and "V/v" to SVG ! (diff) | |
| download | inkscape-e93821409140f74f3c27b3f8a42bda8b16dd4dfe.tar.gz inkscape-e93821409140f74f3c27b3f8a42bda8b16dd4dfe.zip | |
2geomify print, fill and stroke methods of extensions
(bzr r6274)
Diffstat (limited to 'src/libnrtype')
| -rw-r--r-- | src/libnrtype/Layout-TNG-Output.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/libnrtype/Layout-TNG-Output.cpp b/src/libnrtype/Layout-TNG-Output.cpp index eb6514b34..3ad979cca 100644 --- a/src/libnrtype/Layout-TNG-Output.cpp +++ b/src/libnrtype/Layout-TNG-Output.cpp @@ -155,18 +155,14 @@ void Layout::print(SPPrintContext *ctx, Span const &span = _spans[_characters[_glyphs[glyph_index].in_character].in_span]; InputStreamTextSource const *text_source = static_cast<InputStreamTextSource const *>(_input_stream[span.in_input_stream_item]); if (text_to_path || _path_fitted) { - NRBPath bpath; - bpath.path = (NArtBpath*)span.font->ArtBPath(_glyphs[glyph_index].glyph); - if (bpath.path) { - const_NRBPath abp; + Geom::PathVector const * pv = span.font->PathVector(_glyphs[glyph_index].glyph); + if (pv) { _getGlyphTransformMatrix(glyph_index, &glyph_matrix); - NArtBpath *temp_bpath = nr_artpath_affine(bpath.path, glyph_matrix); - abp.path = temp_bpath; + Geom::PathVector temp_pv = (*pv) * to_2geom(glyph_matrix); if (!text_source->style->fill.isNone()) - sp_print_fill(ctx, &abp, &ctm, text_source->style, pbox, dbox, bbox); + sp_print_fill(ctx, temp_pv, &ctm, text_source->style, pbox, dbox, bbox); if (!text_source->style->stroke.isNone()) - sp_print_stroke(ctx, &abp, &ctm, text_source->style, pbox, dbox, bbox); - g_free(temp_bpath); + sp_print_stroke(ctx, temp_pv, &ctm, text_source->style, pbox, dbox, bbox); } glyph_index++; } else { |
