diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2008-07-11 06:03:47 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2008-07-11 06:03:47 +0000 |
| commit | 4355a51f227616ee0fd231db1b7619155f188de0 (patch) | |
| tree | 1c304f4171ca6c8123d24e7c34ab5258cb9d08c2 /src/display/nr-svgfonts.cpp | |
| parent | Patch from Martin von Gagern for bug #247368 (diff) | |
| download | inkscape-4355a51f227616ee0fd231db1b7619155f188de0.tar.gz inkscape-4355a51f227616ee0fd231db1b7619155f188de0.zip | |
* removed the auxiliary GtkWindow
* added font preview to the SvgFonts dialog
(bzr r6254)
Diffstat (limited to 'src/display/nr-svgfonts.cpp')
| -rw-r--r-- | src/display/nr-svgfonts.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/display/nr-svgfonts.cpp b/src/display/nr-svgfonts.cpp index 7b0b4938b..b59d0569d 100644 --- a/src/display/nr-svgfonts.cpp +++ b/src/display/nr-svgfonts.cpp @@ -22,29 +22,6 @@ #include "inkscape-cairo.h" #include "nr-svgfonts.h" -//***********************************// -// SvgFontDrawingArea Implementation // -//***********************************// -class SvgFontDrawingArea : Gtk::DrawingArea{ -public: -SvgFontDrawingArea(SvgFont* svgfont){ - this->svgfont = svgfont; -} -private: -SvgFont* svgfont; - -bool on_expose_event (GdkEventExpose *event){ - Glib::RefPtr<Gdk::Window> window = get_window(); - Cairo::RefPtr<Cairo::Context> cr = window->create_cairo_context(); - cr->set_font_face( Cairo::RefPtr<Cairo::FontFace>(new Cairo::FontFace(this->svgfont->get_font_face(), false /* does not have reference */)) ); - cr->set_font_size (100); - cr->move_to (100, 100); - cr->show_text ("A@!A!@A"); - - return TRUE; -} -};//class SvgFontDrawingArea - //*************************// // UserFont Implementation // //*************************// @@ -98,16 +75,6 @@ SvgFont::SvgFont(SPFont* spfont){ this->font = spfont; this->missingglyph = NULL; this->userfont = NULL; - - //This is an auxiliary gtkWindow used only while we do not have proper Pango integration with cairo-user-fonts. - Gtk::Window* window; - SvgFontDrawingArea* font_da; - - window = new Gtk::Window(); - window->set_default_size (1200, 850); - font_da = new SvgFontDrawingArea(this); - window->add((Gtk::Widget&) *font_da); - window->show_all(); } cairo_status_t |
