On Fri, May 23, 2008 at 12:41 AM, Felipe Sanches <felipe.sanches@...400...> wrote:
- Currently I have been trying to test this code by calling
cairo_set_font_face (ct, nr_svgfonts_get_user_font_face()); cairo_show_text (ct, "A!@A"); But I do not have a proper place to put this call. I have tried to call if from within nr-arena-render-glyphs.cpp, but it is probably wrong.
nr arena items only use cairo in outline mode, and even then nr-arena-glyphs do not use this approach - they request FontInstance for the path of each glyph and pass it to cairo as a simple path. So, as I wrote you before, eventually you will need to change FontInstance (or replace it perhaps) for SVG fonts to seamlessly work. But for now, if you only need to test, you can insert this code with cairo_show_text for example to nr_arena_glyphs_render to the outline mode branch, instead of the feed_curve_to_cairo.