svg-fonts-dialog.cpp revision a6cde89b2c2dac90ea2617b4d97f2c31cdff1f6b
/**
* \brief SVG Fonts dialog
*
* Authors:
* Felipe C. da S. Sanches <felipe.sanches@gmail.com>
*
* Copyright (C) 2008 Authors
*
* Released under GNU GPLv2 (or later). Read the file 'COPYING' for more information.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef ENABLE_SVG_FONTS
#include "svg-fonts-dialog.h"
#include <string.h>
this->text = "";
}
}
}
void SvgFontDrawingArea::set_size(int x, int y){
this->x = x;
this->y = y;
}
void SvgFontDrawingArea::redraw(){
}
if (this->svgfont){
cr->set_font_face( Cairo::RefPtr<Cairo::FontFace>(new Cairo::FontFace(this->svgfont->get_font_face(), false /* does not have reference */)) );
}
return TRUE;
}
namespace Inkscape {
namespace UI {
namespace Dialog {
/*** SvgFontsDialog ***/
}
if (spfont) {
this->clear();
if (SP_IS_GLYPH(node)){
}
}
}
}
void SvgFontsDialog::on_kerning_changed(){
if (this->kerning_pair){
}
}
void SvgFontsDialog::on_glyphs_changed(){
//look for this kerning pair on the currently selected font
this->kerning_pair = NULL;
if (SP_IS_HKERN(node) && ((SPGlyphKerning*)node)->u1->contains((gchar) first_glyph.get_active_text().c_str()[0])
continue;
}
}
//TODO:
//if not found,
//create new kern node
if (this->kerning_pair)
}
/* Add all fonts in the document to the combobox. */
void SvgFontsDialog::update_fonts()
{
}
}
void SvgFontsDialog::on_preview_text_changed(){
}
void SvgFontsDialog::on_font_selection_changed(){
int steps = 50;
}
void SvgFontsDialog::on_setwidth_changed(){
if (spfont){
//TODO: tell cairo that the glyphs cache has to be invalidated
}
}
{
if(i)
return NULL;
}
{
if(i)
return NULL;
}
{
//List of SVGFonts declared in a document:
_font_list.get_selection()->signal_changed().connect(sigc::mem_fun(*this, &SvgFontsDialog::on_font_selection_changed));
this->update_fonts();
//kerning setup:
//Set Width (horiz_adv_x):
//Kerning Setup:
//Text Preview:
_preview_entry.signal_changed().connect(sigc::mem_fun(*this, &SvgFontsDialog::on_preview_text_changed));
_getContents()->show_all();
}
SvgFontsDialog::~SvgFontsDialog(){}
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
#endif //#ifdef ENABLE_SVG_FONTS