@@ -351,7 +351,7 @@ SurfaceEps::SurfaceEps( const fs::path &filePath, double widthInPoints, double h
351351 : SurfaceBase( (int32_t )widthInPoints, (int32_t )heightInPoints )
352352{
353353 mCairoSurface = cairo_ps_surface_create ( filePath.string ().c_str (), widthInPoints, heightInPoints );
354- cairo_ps_surface_set_eps ( mCairoSurface , TRUE );
354+ cairo_ps_surface_set_eps ( mCairoSurface , 1 );
355355 cairo_ps_surface_restrict_to_level ( mCairoSurface , ( enableLevel3 ) ? CAIRO_PS_LEVEL_3 : CAIRO_PS_LEVEL_2 );
356356}
357357
@@ -1750,6 +1750,10 @@ void Context::setFont( const cinder::Font &font )
17501750 cairo_font_face_t *cairoFont = cairo_quartz_font_face_create_for_cgfont ( font.getCgFontRef () );
17511751#elif defined( CINDER_MSW )
17521752 cairo_font_face_t *cairoFont = cairo_win32_font_face_create_for_logfontw ( const_cast <LOGFONTW *>( (const LOGFONTW *)font.getLogfont () ) );
1753+ #elif defined( CINDER_LINUX )
1754+ cairo_select_font_face ( mCairo , font.getName ().c_str (), CAIRO_FONT_SLANT_NORMAL , CAIRO_FONT_WEIGHT_NORMAL );
1755+ cairo_font_face_t *cairoFont = cairo_get_font_face ( mCairo );
1756+ cairo_font_face_reference ( cairoFont );
17531757#endif
17541758 cairo_set_font_face ( mCairo , cairoFont );
17551759 cairo_set_font_size ( mCairo , font.getSize () );
@@ -2061,7 +2065,7 @@ class SvgRendererCairo : public svg::Renderer {
20612065 fontMatrix *= rotationMatrix;
20622066 mCtx .setFontMatrix ( fontMatrix );
20632067 TextBox tbox = TextBox ().font ( *font ).text ( span.getString () );
2064- std::vector<std::pair< uint16_t ,vec2> > glyphs = tbox.measureGlyphs ();
2068+ auto glyphs = tbox.measureGlyphs ();
20652069 vec2 curPoint = mCtx .getCurrentPoint ();
20662070 for ( size_t g = 0 ; g < glyphs.size (); ++g ) {
20672071 mCtx .save ();
0 commit comments