diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2008-05-25 15:35:28 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2008-05-25 15:35:28 +0000 |
| commit | c14ff7c7b9e4f564920cb37e89b2944aa9156f9a (patch) | |
| tree | 6cb0343c91d16b2dd93593c7b0a1a5459e076e9c /src/sp-font.cpp | |
| parent | Fix some compile warnings (diff) | |
| download | inkscape-c14ff7c7b9e4f564920cb37e89b2944aa9156f9a.tar.gz inkscape-c14ff7c7b9e4f564920cb37e89b2944aa9156f9a.zip | |
* add rule in configure.ac so that only who has cairo > 1.6.4 (currently cairo git master branch) will compile SVGFonts (experimental) support.
* First code for SVGFonts rendering. Renders in a separate window because we still dont have pango integration.
(bzr r5753)
Diffstat (limited to 'src/sp-font.cpp')
| -rw-r--r-- | src/sp-font.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sp-font.cpp b/src/sp-font.cpp index a78f92cc0..5f8d3440a 100644 --- a/src/sp-font.cpp +++ b/src/sp-font.cpp @@ -1,3 +1,5 @@ +#include "config.h" +#ifdef ENABLE_SVG_FONTS #define __SP_FONT_C__ /* @@ -19,6 +21,8 @@ #include "document.h" #include "helper-fns.h" +#include "display/nr-svgfonts.h" + static void sp_font_class_init(SPFontClass *fc); static void sp_font_init(SPFont *font); @@ -96,6 +100,8 @@ static void sp_font_build(SPObject *object, SPDocument *document, Inkscape::XML: sp_object_read_attr(object, "vert-origin-x"); sp_object_read_attr(object, "vert-origin-y"); sp_object_read_attr(object, "vert-adv-y"); + + nr_svgfonts_append_spfont(SP_FONT(object)); } @@ -270,7 +276,7 @@ static Inkscape::XML::Node *sp_font_write(SPObject *object, Inkscape::XML::Node return repr; } - +#endif //#ifdef ENABLE_SVG_FONTS /* Local Variables: mode:c++ |
