Definition at line 161 of file svg-fonts-dialog.h.
◆ GlyphColumnIndex
Enumerator |
---|
ColGlyph | |
ColName | |
ColString | |
ColUplusCode | |
ColAdvance | |
Definition at line 310 of file svg-fonts-dialog.h.
◆ SvgFontsDialog()
Inkscape::UI::Dialog::SvgFontsDialog::SvgFontsDialog |
( |
| ) |
|
Definition at line 1659 of file svg-fonts-dialog.cpp.
References _columns, _font_da, _FontsList, _GlyphsListColumns, _GlyphsListStore, _KerningPairsListColumns, _KerningPairsListStore, _model, _preview_entry, first_glyph, get_selected_spfont(), global_settings_tab(), glyphs_tab(), kerning_slider, kerning_tab(), Inkscape::UI::Dialog::SvgFontsDialog::Columns::label, Inkscape::UI::Dialog::MARGIN_SPACE, on_font_selection_changed(), on_preview_text_changed(), Inkscape::UI::pack_start(), page, second_glyph, SvgFontDrawingArea::set_text(), and Inkscape::UI::Dialog::GlyphMenuButton::update().
◆ ~SvgFontsDialog()
Inkscape::UI::Dialog::SvgFontsDialog::~SvgFontsDialog |
( |
| ) |
|
|
finaldefault |
◆ add_font()
void Inkscape::UI::Dialog::SvgFontsDialog::add_font |
( |
| ) |
|
|
private |
◆ add_glyph()
void Inkscape::UI::Dialog::SvgFontsDialog::add_glyph |
( |
| ) |
|
|
private |
◆ add_kerning_pair()
void Inkscape::UI::Dialog::SvgFontsDialog::add_kerning_pair |
( |
| ) |
|
|
private |
◆ AttrCombo()
Gtk::Box * Inkscape::UI::Dialog::SvgFontsDialog::AttrCombo |
( |
gchar * |
lbl, |
|
|
const SPAttr |
attr |
|
) |
| |
|
private |
◆ documentReplaced()
void Inkscape::UI::Dialog::SvgFontsDialog::documentReplaced |
( |
| ) |
|
|
finalvirtual |
◆ edit_glyph()
void Inkscape::UI::Dialog::SvgFontsDialog::edit_glyph |
( |
SPGlyph * |
glyph | ) |
|
|
private |
◆ font_selected()
void Inkscape::UI::Dialog::SvgFontsDialog::font_selected |
( |
SvgFont * |
svgfont, |
|
|
SPFont * |
spfont |
|
) |
| |
|
private |
Definition at line 637 of file svg-fonts-dialog.cpp.
References _font_da, _glyph_cell_renderer, _glyph_renderer, _update, OperationBlocker::block(), first_glyph, SPFont::horiz_adv_x, kerning_preview, kerning_slider, populate_glyphs_box(), populate_kerning_pairs_box(), SvgFontDrawingArea::redraw(), second_glyph, Inkscape::UI::Dialog::SvgGlyphRenderer::set_svg_font(), SvgFontDrawingArea::set_svgfont(), Inkscape::UI::Dialog::GlyphMenuButton::update(), update_global_settings_tab(), and update_sensitiveness().
Referenced by on_font_selection_changed(), and update_fonts().
◆ get_selected_glyph()
SPGlyph * Inkscape::UI::Dialog::SvgFontsDialog::get_selected_glyph |
( |
| ) |
|
|
private |
◆ get_selected_glyph_iter()
Gtk::TreeModel::iterator Inkscape::UI::Dialog::SvgFontsDialog::get_selected_glyph_iter |
( |
| ) |
|
|
private |
◆ get_selected_kerning_pair()
SPGlyphKerning * Inkscape::UI::Dialog::SvgFontsDialog::get_selected_kerning_pair |
( |
| ) |
|
|
private |
◆ get_selected_spfont()
SPFont * Inkscape::UI::Dialog::SvgFontsDialog::get_selected_spfont |
( |
| ) |
|
|
private |
◆ get_selected_svgfont()
SvgFont * Inkscape::UI::Dialog::SvgFontsDialog::get_selected_svgfont |
( |
| ) |
|
|
private |
◆ global_settings_tab()
Gtk::Box * Inkscape::UI::Dialog::SvgFontsDialog::global_settings_tab |
( |
| ) |
|
|
private |
Definition at line 804 of file svg-fonts-dialog.cpp.
References ASCENT, CAP_HEIGHT, DESCENT, FONT_FAMILY, HORIZ_ADV_X, HORIZ_ORIGIN_X, HORIZ_ORIGIN_Y, Inkscape::UI::Dialog::MARGIN_SPACE, Inkscape::UI::pack_start(), Inkscape::UI::Dialog::set_up_typography_canvas(), UNITS_PER_EM, and X_HEIGHT.
Referenced by SvgFontsDialog().
◆ glyph_advance_edit()
void Inkscape::UI::Dialog::SvgFontsDialog::glyph_advance_edit |
( |
const Glib::ustring & |
, |
|
|
const Glib::ustring & |
str |
|
) |
| |
|
private |
◆ glyph_name_edit()
void Inkscape::UI::Dialog::SvgFontsDialog::glyph_name_edit |
( |
const Glib::ustring & |
, |
|
|
const Glib::ustring & |
str |
|
) |
| |
|
private |
◆ glyph_unicode_edit()
void Inkscape::UI::Dialog::SvgFontsDialog::glyph_unicode_edit |
( |
const Glib::ustring & |
, |
|
|
const Glib::ustring & |
str |
|
) |
| |
|
private |
◆ glyphs_tab()
Gtk::Box * Inkscape::UI::Dialog::SvgFontsDialog::glyphs_tab |
( |
| ) |
|
|
private |
◆ kerning_tab()
Gtk::Box * Inkscape::UI::Dialog::SvgFontsDialog::kerning_tab |
( |
| ) |
|
|
private |
◆ missing_glyph_description_from_selected_path()
void Inkscape::UI::Dialog::SvgFontsDialog::missing_glyph_description_from_selected_path |
( |
| ) |
|
|
private |
Definition at line 1102 of file svg-fonts-dialog.cpp.
References Inkscape::XML::Node::attribute(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::UI::Dialog::flip_coordinate_system(), Inkscape::UI::Dialog::get_font_units_per_em(), Inkscape::XML::Node::matchAttributeName(), msg, node, sp_svg_read_pathv(), and sp_svg_write_path().
◆ on_font_selection_changed()
void Inkscape::UI::Dialog::SvgFontsDialog::on_font_selection_changed |
( |
| ) |
|
|
private |
◆ on_kerning_pair_changed()
void Inkscape::UI::Dialog::SvgFontsDialog::on_kerning_pair_changed |
( |
| ) |
|
|
private |
◆ on_kerning_pair_selection_changed()
void Inkscape::UI::Dialog::SvgFontsDialog::on_kerning_pair_selection_changed |
( |
| ) |
|
|
private |
◆ on_kerning_value_changed()
void Inkscape::UI::Dialog::SvgFontsDialog::on_kerning_value_changed |
( |
| ) |
|
|
private |
Definition at line 309 of file svg-fonts-dialog.cpp.
References _font_da, UnicodeRange::attribute_string(), get_selected_kerning_pair(), get_selected_spfont(), Inkscape::UI::Dialog::DialogBase::getDocument(), kerning_pair, kerning_preview, kerning_slider, Inkscape::DocumentUndo::maybeDone(), SvgFontDrawingArea::redraw(), SPObject::setAttribute(), SPGlyphKerning::u1, and SPGlyphKerning::u2.
◆ on_preview_text_changed()
void Inkscape::UI::Dialog::SvgFontsDialog::on_preview_text_changed |
( |
| ) |
|
|
private |
◆ on_setfontdata_changed()
void Inkscape::UI::Dialog::SvgFontsDialog::on_setfontdata_changed |
( |
| ) |
|
|
private |
◆ populate_glyphs_box()
void Inkscape::UI::Dialog::SvgFontsDialog::populate_glyphs_box |
( |
| ) |
|
|
private |
◆ populate_kerning_pairs_box()
void Inkscape::UI::Dialog::SvgFontsDialog::populate_kerning_pairs_box |
( |
| ) |
|
|
private |
◆ refresh_svgfont()
void Inkscape::UI::Dialog::SvgFontsDialog::refresh_svgfont |
( |
| ) |
|
|
private |
◆ remove_selected_font()
void Inkscape::UI::Dialog::SvgFontsDialog::remove_selected_font |
( |
| ) |
|
|
private |
◆ remove_selected_glyph()
void Inkscape::UI::Dialog::SvgFontsDialog::remove_selected_glyph |
( |
| ) |
|
|
private |
◆ remove_selected_kerning_pair()
void Inkscape::UI::Dialog::SvgFontsDialog::remove_selected_kerning_pair |
( |
| ) |
|
|
private |
◆ reset_missing_glyph_description()
void Inkscape::UI::Dialog::SvgFontsDialog::reset_missing_glyph_description |
( |
| ) |
|
|
private |
◆ set_glyph_description_from_selected_path()
void Inkscape::UI::Dialog::SvgFontsDialog::set_glyph_description_from_selected_path |
( |
| ) |
|
|
private |
Definition at line 1062 of file svg-fonts-dialog.cpp.
References Inkscape::XML::Node::attribute(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::UI::Dialog::flip_coordinate_system(), Inkscape::UI::Dialog::get_font_units_per_em(), Inkscape::XML::Node::matchAttributeName(), msg, node, SPObject::setAttribute(), sp_svg_read_pathv(), and sp_svg_write_path().
◆ set_glyph_row()
void Inkscape::UI::Dialog::SvgFontsDialog::set_glyph_row |
( |
Gtk::TreeRow & |
row, |
|
|
SPGlyph & |
glyph |
|
) |
| |
|
private |
◆ set_glyphs_view_mode()
void Inkscape::UI::Dialog::SvgFontsDialog::set_glyphs_view_mode |
( |
bool |
list | ) |
|
|
private |
◆ set_selected_glyph()
void Inkscape::UI::Dialog::SvgFontsDialog::set_selected_glyph |
( |
SPGlyph * |
glyph | ) |
|
|
private |
◆ sort_glyphs()
void Inkscape::UI::Dialog::SvgFontsDialog::sort_glyphs |
( |
SPFont * |
font | ) |
|
|
private |
◆ update_fonts()
void Inkscape::UI::Dialog::SvgFontsDialog::update_fonts |
( |
bool |
document_replaced | ) |
|
|
private |
Add all fonts in the getDocument() to the combobox.
This function is called when new document is selected as well as when SVG "definition" section changes. Try to detect if font(s) have actually been modified to eliminate some expensive refreshes.
Definition at line 528 of file svg-fonts-dialog.cpp.
References _columns, _FontsList, _model, Inkscape::UI::Dialog::DialogBase::document, font_selected(), Inkscape::UI::Dialog::get_font_label(), Inkscape::UI::Dialog::DialogBase::getDocument(), SPDocument::getResourceList(), Inkscape::UI::Dialog::SvgFontsDialog::Columns::label, node, Inkscape::UI::Dialog::DialogBase::selection, Inkscape::UI::Dialog::SvgFontsDialog::Columns::spfont, Inkscape::UI::Dialog::SvgFontsDialog::Columns::svgfont, and update_sensitiveness().
Referenced by documentReplaced().
◆ update_global_settings_tab()
void Inkscape::UI::Dialog::SvgFontsDialog::update_global_settings_tab |
( |
| ) |
|
|
private |
Definition at line 613 of file svg-fonts-dialog.cpp.
References _ascent_spin, _cap_height_spin, _descent_spin, _familyname_entry, _horiz_adv_x_spin, _horiz_origin_x_spin, _horiz_origin_y_spin, _units_per_em_spin, _x_height_spin, SPObject::children, get_selected_spfont(), SPFont::horiz_adv_x, SPFont::horiz_origin_x, and SPFont::horiz_origin_y.
Referenced by font_selected().
◆ update_glyph()
void Inkscape::UI::Dialog::SvgFontsDialog::update_glyph |
( |
SPGlyph * |
glyph | ) |
|
|
private |
◆ update_glyphs()
void Inkscape::UI::Dialog::SvgFontsDialog::update_glyphs |
( |
SPGlyph * |
changed_glyph = nullptr | ) |
|
|
private |
◆ update_sensitiveness()
void Inkscape::UI::Dialog::SvgFontsDialog::update_sensitiveness |
( |
| ) |
|
|
private |
◆ _ascent_spin
std::unique_ptr<AttrSpin> Inkscape::UI::Dialog::SvgFontsDialog::_ascent_spin |
|
private |
◆ _cap_height_spin
std::unique_ptr<AttrSpin> Inkscape::UI::Dialog::SvgFontsDialog::_cap_height_spin |
|
private |
◆ _columns
Columns Inkscape::UI::Dialog::SvgFontsDialog::_columns |
|
private |
◆ _defs_observer
◆ _defs_observer_connection
sigc::scoped_connection Inkscape::UI::Dialog::SvgFontsDialog::_defs_observer_connection |
|
private |
◆ _descent_spin
std::unique_ptr<AttrSpin> Inkscape::UI::Dialog::SvgFontsDialog::_descent_spin |
|
private |
◆ _familyname_entry
std::unique_ptr<AttrEntry> Inkscape::UI::Dialog::SvgFontsDialog::_familyname_entry |
|
private |
◆ _font_add
Gtk::Button Inkscape::UI::Dialog::SvgFontsDialog::_font_add |
|
private |
◆ _font_da
◆ _font_face_label
Gtk::Label* Inkscape::UI::Dialog::SvgFontsDialog::_font_face_label |
|
private |
◆ _font_family
EntryWidget Inkscape::UI::Dialog::SvgFontsDialog::_font_family |
|
private |
◆ _font_label
Gtk::Label* Inkscape::UI::Dialog::SvgFontsDialog::_font_label |
|
private |
◆ _font_remove
Gtk::Button Inkscape::UI::Dialog::SvgFontsDialog::_font_remove |
|
private |
◆ _font_variant
EntryWidget Inkscape::UI::Dialog::SvgFontsDialog::_font_variant |
|
private |
◆ _fonts_scroller
Gtk::ScrolledWindow Inkscape::UI::Dialog::SvgFontsDialog::_fonts_scroller |
|
private |
◆ _FontsList
Gtk::TreeView Inkscape::UI::Dialog::SvgFontsDialog::_FontsList |
|
private |
◆ _glyph_cell_renderer
SvgGlyphRenderer* Inkscape::UI::Dialog::SvgFontsDialog::_glyph_cell_renderer = nullptr |
|
private |
◆ _glyph_renderer
SvgGlyphRenderer* Inkscape::UI::Dialog::SvgFontsDialog::_glyph_renderer = nullptr |
|
private |
◆ _glyphs_grid
Gtk::IconView Inkscape::UI::Dialog::SvgFontsDialog::_glyphs_grid |
|
private |
◆ _glyphs_icon_scroller
Gtk::ScrolledWindow Inkscape::UI::Dialog::SvgFontsDialog::_glyphs_icon_scroller |
|
private |
◆ _glyphs_observer
◆ _GlyphsList
Gtk::TreeView Inkscape::UI::Dialog::SvgFontsDialog::_GlyphsList |
|
private |
◆ _GlyphsListColumns
GlyphsColumns Inkscape::UI::Dialog::SvgFontsDialog::_GlyphsListColumns |
|
private |
◆ _GlyphsListScroller
Gtk::ScrolledWindow Inkscape::UI::Dialog::SvgFontsDialog::_GlyphsListScroller |
|
private |
◆ _GlyphsListStore
Glib::RefPtr<Gtk::ListStore> Inkscape::UI::Dialog::SvgFontsDialog::_GlyphsListStore |
|
private |
◆ _grid
Gtk::Grid Inkscape::UI::Dialog::SvgFontsDialog::_grid |
|
private |
◆ _header_box
Gtk::Grid Inkscape::UI::Dialog::SvgFontsDialog::_header_box |
|
private |
◆ _horiz_adv_x_spin
std::unique_ptr<AttrSpin> Inkscape::UI::Dialog::SvgFontsDialog::_horiz_adv_x_spin |
|
private |
◆ _horiz_origin_x_spin
std::unique_ptr<AttrSpin> Inkscape::UI::Dialog::SvgFontsDialog::_horiz_origin_x_spin |
|
private |
◆ _horiz_origin_y_spin
std::unique_ptr<AttrSpin> Inkscape::UI::Dialog::SvgFontsDialog::_horiz_origin_y_spin |
|
private |
◆ _KerningPairsList
Gtk::TreeView Inkscape::UI::Dialog::SvgFontsDialog::_KerningPairsList |
|
private |
◆ _KerningPairsListColumns
◆ _KerningPairsListScroller
Gtk::ScrolledWindow Inkscape::UI::Dialog::SvgFontsDialog::_KerningPairsListScroller |
|
private |
◆ _KerningPairsListStore
Glib::RefPtr<Gtk::ListStore> Inkscape::UI::Dialog::SvgFontsDialog::_KerningPairsListStore |
|
private |
◆ _model
Glib::RefPtr<Gtk::ListStore> Inkscape::UI::Dialog::SvgFontsDialog::_model |
|
private |
◆ _preview_entry
Gtk::Entry Inkscape::UI::Dialog::SvgFontsDialog::_preview_entry |
|
private |
◆ _show_glyph_list
bool Inkscape::UI::Dialog::SvgFontsDialog::_show_glyph_list = true |
|
private |
◆ _units_per_em_spin
std::unique_ptr<AttrSpin> Inkscape::UI::Dialog::SvgFontsDialog::_units_per_em_spin |
|
private |
◆ _update
◆ _x_height_spin
std::unique_ptr<AttrSpin> Inkscape::UI::Dialog::SvgFontsDialog::_x_height_spin |
|
private |
◆ add_kernpair_button
Gtk::Button Inkscape::UI::Dialog::SvgFontsDialog::add_kernpair_button |
|
private |
◆ first_glyph
◆ global_vbox
Gtk::Box Inkscape::UI::Dialog::SvgFontsDialog::global_vbox |
|
private |
◆ glyphs_vbox
Gtk::Box Inkscape::UI::Dialog::SvgFontsDialog::glyphs_vbox |
|
private |
◆ kerning_pair
◆ kerning_preview
◆ kerning_slider
Gtk::Scale* Inkscape::UI::Dialog::SvgFontsDialog::kerning_slider |
|
private |
◆ kerning_vbox
Gtk::Box Inkscape::UI::Dialog::SvgFontsDialog::kerning_vbox |
|
private |
◆ second_glyph
◆ setwidth_spin
The documentation for this class was generated from the following files: