diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-20 10:34:30 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-21 11:02:56 +0000 |
| commit | 50b3c18850a43b962ed15855abdb337c846550a8 (patch) | |
| tree | 147a86fc1d123f44bfd9927448ab2ecf4bfd1bdc /src/libnrtype | |
| parent | Merge branch 'select-page' of gitlab.com:bobqwatson/inkscape (diff) | |
| download | inkscape-50b3c18850a43b962ed15855abdb337c846550a8.tar.gz inkscape-50b3c18850a43b962ed15855abdb337c846550a8.zip | |
Move global functions into SPPrintContext methods.
Diffstat (limited to 'src/libnrtype')
| -rw-r--r-- | src/libnrtype/Layout-TNG-Output.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libnrtype/Layout-TNG-Output.cpp b/src/libnrtype/Layout-TNG-Output.cpp index dc69934b1..7f9ee69a9 100644 --- a/src/libnrtype/Layout-TNG-Output.cpp +++ b/src/libnrtype/Layout-TNG-Output.cpp @@ -270,9 +270,9 @@ Geom::Affine glyph_matrix; _getGlyphTransformMatrix(glyph_index, &glyph_matrix); Geom::PathVector temp_pv = (*pv) * glyph_matrix; if (!text_source->style->fill.isNone()) - sp_print_fill(ctx, temp_pv, ctm, text_source->style, pbox, dbox, bbox); + ctx->fill(temp_pv, ctm, text_source->style, pbox, dbox, bbox); if (!text_source->style->stroke.isNone()) - sp_print_stroke(ctx, temp_pv, ctm, text_source->style, pbox, dbox, bbox); + ctx->stroke(temp_pv, ctm, text_source->style, pbox, dbox, bbox); } } } @@ -401,16 +401,16 @@ std:: cout << "DEBUG Layout::print in while --- " } // write it - sp_print_bind(ctx, glyph_matrix, 1.0); + ctx->bind(glyph_matrix, 1.0); // the dx array is smuggled through to the EMF driver (ignored by others) as: // text<nul>w1 w2 w3 ...wn<nul><nul> // where the widths are floats 7 characters wide, including the space char *smuggle_string=smuggle_adxkyrtl_in(text_string.c_str(),ndx, &hold_dx[0], ky, rtl); - sp_print_text(ctx, smuggle_string, g_pos, text_source->style); + ctx->text(smuggle_string, g_pos, text_source->style); free(smuggle_string); - sp_print_release(ctx); + ctx->release(); ndx = 0; char_index = lc_index; } |
