Inkscape
Vector Graphics Editor
|
This class enumerates fonts using libnrtype into reusable data stores and allows for random access to the font-family list and the font-style list. More...
#include <font-lister.h>
Classes | |
struct | FontListClass |
GtkTreeModelColumnRecord for the font-family list Gtk::ListStore. More... | |
struct | FontStyleListClass |
Public Types | |
enum class | Exception { FAMILY_NOT_FOUND , STYLE_NOT_FOUND } |
using | Styles = std::vector< StyleNames > |
Public Member Functions | |
Glib::RefPtr< Gtk::ListStore > const & | get_font_list () const |
Glib::RefPtr< Gtk::ListStore > const & | get_style_list () const |
void | insert_font_family (Glib::ustring const &new_family) |
Inserts a font family or font-fallback list (for use when not already in document or on system). | |
int | add_document_fonts_at_top (SPDocument *document) |
void | update_font_list (SPDocument *document) |
Updates font list to include fonts in document. | |
bool | find_string_case_insensitive (std::string const &text, std::string const &pat) |
Takes a hand written font spec and returns a Pango generated one in standard form. | |
void | show_results (Glib::ustring const &search_text) |
void | apply_collections (std::set< Glib::ustring > &selected_collections) |
void | set_dragging_family (Glib::ustring const &new_family) |
Glib::ustring | canonize_fontspec (Glib::ustring const &fontspec) const |
Glib::ustring | system_fontspec (Glib::ustring const &fontspec) |
Find closest system font to given font. | |
std::pair< Glib::ustring, Glib::ustring > | ui_from_fontspec (Glib::ustring const &fontspec) const |
Gets font-family and style from fontspec. | |
std::pair< Glib::ustring, Glib::ustring > | selection_update () |
Sets font-family and style after a selection change. | |
void | set_fontspec (Glib::ustring const &fontspec, bool check=true) |
Sets current_fontspec, etc. | |
Glib::ustring | get_fontspec () const |
std::pair< Glib::ustring, Glib::ustring > | new_font_family (Glib::ustring const &family, bool check_style=true) |
Changes font-family, updating style list and attempting to find closest style to current_style style (if check_style is true). | |
std::pair< Glib::ustring, Glib::ustring > | set_font_family (Glib::ustring const &family, bool check_style=true, bool emit=true) |
Sets font-family, updating style list and attempting to find closest style to old current_style. | |
std::pair< Glib::ustring, Glib::ustring > | set_font_family (int row, bool check_style=true, bool emit=true) |
Sets font-family from row in list store. | |
Glib::ustring const & | get_font_family () const |
Glib::ustring const & | get_dragging_family () const |
int | get_font_family_row () const |
void | set_font_style (Glib::ustring style, bool emit=true) |
Sets style. | |
Glib::ustring const & | get_font_style () const |
Glib::ustring | fontspec_from_style (SPStyle *style) const |
void | fill_css (SPCSSAttr *css, Glib::ustring fontspec={}) |
Fill css using given fontspec (doesn't need to be member function). | |
Gtk::TreeModel::Row | get_row_for_font () |
Gtk::TreeModel::Row | get_row_for_font (Glib::ustring const &family) |
Gtk::TreePath | get_path_for_font (Glib::ustring const &family) |
bool | is_path_for_font (Gtk::TreePath path, Glib::ustring family) |
Gtk::TreeModel::Row | get_row_for_style () |
Gtk::TreeModel::Row | get_row_for_style (Glib::ustring const &style) |
Gtk::TreePath | get_path_for_style (Glib::ustring const &style) |
std::pair< Gtk::TreePath, Gtk::TreePath > | get_paths (Glib::ustring const &family, Glib::ustring const &style) |
Glib::ustring | get_best_style_match (Glib::ustring const &family, Glib::ustring const &style) |
Return best style match for new font given style for old font. | |
void | ensureRowStyles (Gtk::TreeModel::iterator iter) |
Ensures the style list for a particular family has been created. | |
Glib::ustring | get_font_family_markup (Gtk::TreeModel::const_iterator const &iter) const |
Get markup for font-family. | |
sigc::connection | connectUpdate (sigc::slot< void()> slot) |
Let users of FontLister know to update GUI. | |
sigc::connection | connectNewFonts (sigc::slot< void()> slot) |
bool | blocked () const |
int | get_font_families_size () const |
bool | font_installed_on_system (Glib::ustring const &font) const |
void | init_font_families (int group_offset=-1, int group_size=-1) |
void | init_default_styles () |
std::pair< bool, std::string > | get_font_count_label () const |
Static Public Member Functions | |
static Inkscape::FontLister * | get_instance () |
Public Attributes | |
FontListClass | font_list |
FontStyleListClass | font_style_list |
std::map< std::string, PangoFontFamily * > | pango_family_map |
The list of fonts, sorted by the order they will appear in the UI. | |
Private Member Functions | |
FontLister () | |
~FontLister () | |
void | update_font_data_recursive (SPObject &r, std::map< Glib::ustring, std::set< Glib::ustring > > &font_data) |
void | font_family_row_update (int start=0) |
void | emit_update () |
Private Attributes | |
Glib::RefPtr< Gtk::ListStore > | font_list_store |
Glib::RefPtr< Gtk::ListStore > | style_list_store |
int | current_family_row = 0 |
Info for currently selected font (what is shown in the UI). | |
Glib::ustring | current_family = "sans-serif" |
Glib::ustring | dragging_family |
Glib::ustring | current_style = "Normal" |
std::shared_ptr< Styles > | default_styles |
If a font-family is not on system, this list of styles is used. | |
bool | block = false |
sigc::signal< void()> | update_signal |
sigc::signal< void()> | new_fonts_signal |
This class enumerates fonts using libnrtype into reusable data stores and allows for random access to the font-family list and the font-style list.
Setting the font-family updates the font-style list. "Style" in this case refers to everything but family and size (e.g. italic/oblique, weight).
This class handles font-family lists and fonts that are not on the system, where there is not an entry in the fontInstanceMap.
This class uses the idea of "font_spec". This is a plain text string as used by Pango. It is similar to the CSS font shorthand except that font-family comes first and in this class the font-size is not used.
This class uses the FontFactory class to get a list of system fonts and to find best matches via Pango. The Pango interface is only setup to deal with fonts that are on the system so care must be taken. For example, best matches should only be done with the first font-family in a font-family list. If the first font-family is not on the system then a generic font-family should be used (sans-serif -> Sans).
This class is used by the UI interface (text-toolbar, font-select, etc.). Those items can change the selected font family and style here. When that happens. this class emits a signal for those items to update their displayed values.
This class is a singleton (one instance per Inkscape session). Since fonts used in a document are added to the list, there really should be one instance per document.
"Font" includes family and style. It should not be used when one means font-family.
Definition at line 83 of file font-lister.h.
using Inkscape::FontLister::Styles = std::vector<StyleNames> |
Definition at line 92 of file font-lister.h.
|
strong |
Enumerator | |
---|---|
FAMILY_NOT_FOUND | |
STYLE_NOT_FOUND |
Definition at line 86 of file font-lister.h.
|
private |
Definition at line 61 of file font-lister.cpp.
References default_styles, font_style_list, Inkscape::Util::EnableSingleton< FontFactory >::get(), FontFactory::GetUIFamilies(), init_default_styles(), init_font_families(), new_fonts_signal, pango_family_map, FontFactory::refreshConfig(), and style_list_store.
|
privatedefault |
int Inkscape::FontLister::add_document_fonts_at_top | ( | SPDocument * | document | ) |
Definition at line 404 of file font-lister.cpp.
References SPObject::children, end, familyNamesAreEqual(), Inkscape::DocumentFonts::get(), SPDocument::getRoot(), and root.
Referenced by Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_search_entry_changed(), and show_results().
void Inkscape::FontLister::apply_collections | ( | std::set< Glib::ustring > & | selected_collections | ) |
Definition at line 225 of file font-lister.cpp.
References Inkscape::DOCUMENT_FONTS, Inkscape::DocumentFonts::get(), Inkscape::FontCollections::get(), Inkscape::RecentlyUsedFonts::get(), Inkscape::DocumentFonts::get_fonts(), Inkscape::RecentlyUsedFonts::get_fonts(), Inkscape::FontCollections::get_fonts(), and Inkscape::RECENTLY_USED_FONTS.
Referenced by Inkscape::FontCollections::add_font(), Inkscape::FontCollections::remove_collection(), Inkscape::FontCollections::remove_font(), and Inkscape::FontCollections::update_selected_collections().
|
inline |
Definition at line 328 of file font-lister.h.
References block.
Glib::ustring Inkscape::FontLister::canonize_fontspec | ( | Glib::ustring const & | fontspec | ) | const |
Definition at line 584 of file font-lister.cpp.
Referenced by get_fontspec().
|
inline |
Definition at line 324 of file font-lister.h.
References new_fonts_signal.
|
inline |
Let users of FontLister know to update GUI.
This is to allow synchronization of changes across multiple widgets. Handlers should block signals. Input is fontspec to set.
Definition at line 321 of file font-lister.h.
References update_signal.
Referenced by Inkscape::UI::Dialog::FontCollectionsManager::FontCollectionsManager(), and Inkscape::UI::Dialog::TextEdit::TextEdit().
|
private |
Definition at line 575 of file font-lister.cpp.
void Inkscape::FontLister::ensureRowStyles | ( | Gtk::TreeModel::iterator | iter | ) |
Ensures the style list for a particular family has been created.
Definition at line 285 of file font-lister.cpp.
References Inkscape::Util::EnableSingleton< FontFactory >::get().
void Inkscape::FontLister::fill_css | ( | SPCSSAttr * | css, |
Glib::ustring | fontspec = {} |
||
) |
Fill css using given fontspec (doesn't need to be member function).
Definition at line 923 of file font-lister.cpp.
References css, css_font_family_quote(), css_quote(), Inkscape::get_fontspec(), sp_repr_css_set_property(), sp_repr_css_unset_property(), and weight.
Referenced by Inkscape::LivePathEffect::LPEMeasureSegments::createTextLabel(), and Inkscape::UI::Dialog::TextEdit::fillTextStyle().
bool Inkscape::FontLister::find_string_case_insensitive | ( | std::string const & | text, |
std::string const & | pat | ||
) |
Takes a hand written font spec and returns a Pango generated one in standard form.
Try to find in the Haystack the Needle - ignore case.
Functions to display the search results in the font list.
Definition at line 172 of file font-lister.cpp.
Referenced by show_results().
|
private |
Definition at line 663 of file font-lister.cpp.
References familyNamesAreEqual(), and start.
bool Inkscape::FontLister::font_installed_on_system | ( | Glib::ustring const & | font | ) | const |
Definition at line 90 of file font-lister.cpp.
References pango_family_map.
Referenced by Inkscape::FontCollections::_read(), and font_lister_cell_data_func2().
Glib::ustring Inkscape::FontLister::fontspec_from_style | ( | SPStyle * | style | ) | const |
Definition at line 1083 of file font-lister.cpp.
References ink_font_description_from_style().
Glib::ustring Inkscape::FontLister::get_best_style_match | ( | Glib::ustring const & | family, |
Glib::ustring const & | style | ||
) |
Return best style match for new font given style for old font.
Definition at line 1187 of file font-lister.cpp.
References Inkscape::font_description_better_match(), and Inkscape::Util::EnableSingleton< FontFactory >::get().
|
inline |
Definition at line 257 of file font-lister.h.
References dragging_family.
Referenced by Inkscape::UI::Widget::FontSelector::on_drag_prepare(), and Inkscape::UI::Widget::FontCollectionSelector::on_drop_drop().
std::pair< bool, std::string > Inkscape::FontLister::get_font_count_label | ( | ) | const |
Definition at line 144 of file font-lister.cpp.
References font_list_store, get_font_families_size(), label, and Inkscape::size.
Referenced by Inkscape::UI::Dialog::FontCollectionsManager::change_font_count_label(), Inkscape::UI::Dialog::TextEdit::change_font_count_label(), and Inkscape::UI::Toolbar::TextToolbar::TextToolbar().
|
inline |
Definition at line 330 of file font-lister.h.
References pango_family_map.
Referenced by get_font_count_label(), and Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed().
|
inline |
Definition at line 252 of file font-lister.h.
References current_family.
Referenced by Inkscape::UI::Dialog::TextEdit::apply_changes(), font_lister_style_cell_data_func(), and Inkscape::UI::Dialog::TextEdit::onReadSelection().
Glib::ustring Inkscape::FontLister::get_font_family_markup | ( | Gtk::TreeModel::const_iterator const & | iter | ) | const |
Get markup for font-family.
Definition at line 299 of file font-lister.cpp.
References Inkscape::Preferences::get(), Inkscape::Preferences::getInt(), and Inkscape::Preferences::getString().
Referenced by font_lister_cell_data_func_markup().
|
inline |
Definition at line 262 of file font-lister.h.
References current_family_row.
|
inline |
The ListStore is ready to be used after class instantiation and should not be modified.
Definition at line 157 of file font-lister.h.
References font_list_store.
Referenced by Inkscape::UI::Widget::FontSelector::FontSelector(), Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed(), and Inkscape::UI::Widget::FontSelector::set_model().
|
inline |
Definition at line 272 of file font-lister.h.
References current_style.
Referenced by Inkscape::UI::Dialog::TextEdit::onReadSelection().
|
inline |
Definition at line 219 of file font-lister.h.
References canonize_fontspec(), current_family, and current_style.
Referenced by Inkscape::UI::Widget::FontSelector::FontSelector(), and Inkscape::UI::Dialog::TextEdit::onReadSelection().
|
static |
Definition at line 165 of file font-lister.cpp.
Referenced by Inkscape::RecentlyUsedFonts::_read(), Inkscape::FontCollections::_read(), Inkscape::UI::Toolbar::TextToolbar::_selectionChanged(), Inkscape::FontCollections::add_font(), Inkscape::UI::Dialog::TextEdit::apply_changes(), Inkscape::UI::Dialog::FontCollectionsManager::change_font_count_label(), Inkscape::UI::Dialog::TextEdit::change_font_count_label(), Inkscape::LivePathEffect::LPEMeasureSegments::createTextLabel(), file_save(), Inkscape::UI::Dialog::TextEdit::fillTextStyle(), font_lister_cell_data_func2(), font_lister_cell_data_func_markup(), font_lister_separator_func(), font_lister_style_cell_data_func(), Inkscape::UI::Dialog::FontCollectionsManager::FontCollectionsManager(), Inkscape::UI::Toolbar::TextToolbar::fontfamily_value_changed(), Inkscape::UI::Widget::FontSelector::FontSelector(), Inkscape::UI::Toolbar::TextToolbar::fontstyle_value_changed(), Inkscape::UI::Widget::ComboBoxEntryToolItem::get_active_row_from_text(), Inkscape::UI::Widget::FontSelector::on_drag_prepare(), Inkscape::UI::Widget::FontCollectionSelector::on_drop_drop(), Inkscape::UI::Widget::FontSelector::on_family_changed(), Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_reset_button_pressed(), Inkscape::UI::Toolbar::TextToolbar::on_reset_button_pressed(), Inkscape::UI::Dialog::FontCollectionsManager::on_search_entry_changed(), Inkscape::UI::Dialog::TextEdit::on_search_entry_changed(), Inkscape::UI::Dialog::TextEdit::onReadSelection(), Inkscape::UI::Dialog::GlyphsPanel::readSelection(), Inkscape::FontCollections::remove_collection(), Inkscape::FontCollections::remove_font(), Inkscape::UI::Widget::FontSelector::set_model(), Inkscape::UI::Toolbar::TextToolbar::setDesktop(), Inkscape::UI::Dialog::TextEdit::TextEdit(), Inkscape::UI::Toolbar::TextToolbar::TextToolbar(), Inkscape::UI::Widget::FontSelector::update_font(), and Inkscape::FontCollections::update_selected_collections().
Gtk::TreePath Inkscape::FontLister::get_path_for_font | ( | Glib::ustring const & | family | ) |
Definition at line 1105 of file font-lister.cpp.
Gtk::TreePath Inkscape::FontLister::get_path_for_style | ( | Glib::ustring const & | style | ) |
std::pair< Gtk::TreePath, Gtk::TreePath > Inkscape::FontLister::get_paths | ( | Glib::ustring const & | family, |
Glib::ustring const & | style | ||
) |
|
inline |
Definition at line 284 of file font-lister.h.
References current_family, and get_row_for_font().
Referenced by get_row_for_font().
Gtk::TreeModel::Row Inkscape::FontLister::get_row_for_font | ( | Glib::ustring const & | family | ) |
Definition at line 1094 of file font-lister.cpp.
References familyNamesAreEqual().
|
inline |
Definition at line 292 of file font-lister.h.
References current_style, and get_row_for_style().
Referenced by get_row_for_style().
Gtk::TreeModel::Row Inkscape::FontLister::get_row_for_style | ( | Glib::ustring const & | style | ) |
Definition at line 1119 of file font-lister.cpp.
References familyNamesAreEqual().
|
inline |
Definition at line 162 of file font-lister.h.
References style_list_store.
Referenced by Inkscape::UI::Widget::FontSelector::FontSelector().
void Inkscape::FontLister::init_default_styles | ( | ) |
Definition at line 130 of file font-lister.cpp.
References Inkscape::FontLister::FontStyleListClass::cssStyle, default_styles, Inkscape::FontLister::FontStyleListClass::displayStyle, font_style_list, style_list_store, and update_signal.
Referenced by FontLister(), Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_reset_button_pressed(), and show_results().
void Inkscape::FontLister::init_font_families | ( | int | group_offset = -1 , |
int | group_size = -1 |
||
) |
Definition at line 95 of file font-lister.cpp.
References Inkscape::FontLister::FontListClass::family, font_list, font_list_store, insert_font_family(), Inkscape::FontLister::FontListClass::onSystem, Inkscape::FontLister::FontListClass::pango_family, pango_family_map, and Inkscape::FontLister::FontListClass::styles.
Referenced by FontLister(), Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_reset_button_pressed(), and show_results().
void Inkscape::FontLister::insert_font_family | ( | Glib::ustring const & | new_family | ) |
Inserts a font family or font-fallback list (for use when not already in document or on system).
Definition at line 371 of file font-lister.cpp.
References familyNamesAreEqual(), and Inkscape::Util::EnableSingleton< FontFactory >::get().
Referenced by init_font_families().
bool Inkscape::FontLister::is_path_for_font | ( | Gtk::TreePath | path, |
Glib::ustring | family | ||
) |
Definition at line 1110 of file font-lister.cpp.
References familyNamesAreEqual().
std::pair< Glib::ustring, Glib::ustring > Inkscape::FontLister::new_font_family | ( | Glib::ustring const & | family, |
bool | check_style = true |
||
) |
Changes font-family, updating style list and attempting to find closest style to current_style style (if check_style is true).
New font-family and style returned. Does NOT update current_family and current_style. (For potential use in font-selector which doesn't update until "Apply" button clicked.)
Definition at line 776 of file font-lister.cpp.
References familyNamesAreEqual(), and Inkscape::Util::EnableSingleton< FontFactory >::get().
std::pair< Glib::ustring, Glib::ustring > Inkscape::FontLister::selection_update | ( | ) |
Sets font-family and style after a selection change.
New font-family and style returned.
Definition at line 683 of file font-lister.cpp.
References SPStyle::font_specification, Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPStyle::mergeCSS(), QUERY_STYLE_NOTHING, QUERY_STYLE_PROPERTY_FONT_SPECIFICATION, QUERY_STYLE_PROPERTY_FONTFAMILY, QUERY_STYLE_PROPERTY_FONTSTYLE, SPStyle::readFromPrefs(), result, sp_desktop_get_style(), and sp_desktop_query_style().
Referenced by Inkscape::UI::Dialog::TextEdit::onReadSelection(), and Inkscape::UI::Dialog::GlyphsPanel::readSelection().
void Inkscape::FontLister::set_dragging_family | ( | Glib::ustring const & | new_family | ) |
Definition at line 840 of file font-lister.cpp.
std::pair< Glib::ustring, Glib::ustring > Inkscape::FontLister::set_font_family | ( | Glib::ustring const & | family, |
bool | check_style = true , |
||
bool | emit = true |
||
) |
Sets font-family, updating style list and attempting to find closest style to old current_style.
New font-family and style returned. Updates current_family and current_style. Calls new_font_family(). (For use in text-toolbar where update is immediate.)
Definition at line 845 of file font-lister.cpp.
std::pair< Glib::ustring, Glib::ustring > Inkscape::FontLister::set_font_family | ( | int | row, |
bool | check_style = true , |
||
bool | emit = true |
||
) |
Sets font-family from row in list store.
The row can be used to determine if we are in the document or system part of the font-family list. This is needed to handle scrolling through the font-family list correctly. Calls set_font_family().
Definition at line 872 of file font-lister.cpp.
void Inkscape::FontLister::set_font_style | ( | Glib::ustring | style, |
bool | emit = true |
||
) |
void Inkscape::FontLister::set_fontspec | ( | Glib::ustring const & | fontspec, |
bool | check = true |
||
) |
Sets current_fontspec, etc.
If check is false, won't try to find best style match (assumes style in fontspec valid for given font-family).
Definition at line 758 of file font-lister.cpp.
Referenced by Inkscape::UI::Dialog::TextEdit::apply_changes().
void Inkscape::FontLister::show_results | ( | Glib::ustring const & | search_text | ) |
Definition at line 183 of file font-lister.cpp.
References add_document_fonts_at_top(), Inkscape::FontCollections::clear_selected_collections(), Inkscape::FontLister::FontListClass::family, find_string_case_insensitive(), font_list, font_list_store, Inkscape::FontCollections::get(), init_default_styles(), init_font_families(), Inkscape::FontLister::FontListClass::onSystem, Inkscape::FontLister::FontListClass::pango_family, and pango_family_map.
Referenced by Inkscape::UI::Dialog::FontCollectionsManager::on_search_entry_changed(), and Inkscape::UI::Dialog::TextEdit::on_search_entry_changed().
Glib::ustring Inkscape::FontLister::system_fontspec | ( | Glib::ustring const & | fontspec | ) |
Find closest system font to given font.
Definition at line 609 of file font-lister.cpp.
References FontFactory::Face(), Inkscape::Util::EnableSingleton< FontFactory >::get(), and sp_font_description_get_family().
std::pair< Glib::ustring, Glib::ustring > Inkscape::FontLister::ui_from_fontspec | ( | Glib::ustring const & | fontspec | ) | const |
Gets font-family and style from fontspec.
font-family and style returned.
Definition at line 625 of file font-lister.cpp.
References weight.
|
private |
Definition at line 531 of file font-lister.cpp.
References child, SPObject::children, SPObject::getId(), SPObject::getRepr(), ink_font_description_from_style(), SPObject::style, Inkscape::XML::TEXT_NODE, and Inkscape::XML::Node::type().
void Inkscape::FontLister::update_font_list | ( | SPDocument * | document | ) |
Updates font list to include fonts in document.
Definition at line 501 of file font-lister.cpp.
References SPDocument::getRoot(), and root.
Referenced by Inkscape::UI::Dialog::TextEdit::apply_changes(), and Inkscape::UI::Widget::FontSelector::FontSelector().
|
private |
Definition at line 362 of file font-lister.h.
Referenced by blocked().
|
private |
Definition at line 353 of file font-lister.h.
Referenced by get_font_family(), get_fontspec(), and get_row_for_font().
|
private |
Info for currently selected font (what is shown in the UI).
May include font-family lists and fonts not on system.
Definition at line 352 of file font-lister.h.
Referenced by get_font_family_row().
|
private |
Definition at line 355 of file font-lister.h.
Referenced by get_font_style(), get_fontspec(), and get_row_for_style().
|
private |
If a font-family is not on system, this list of styles is used.
Definition at line 360 of file font-lister.h.
Referenced by FontLister(), and init_default_styles().
|
private |
Definition at line 354 of file font-lister.h.
Referenced by get_dragging_family().
FontListClass Inkscape::FontLister::font_list |
Definition at line 126 of file font-lister.h.
Referenced by font_lister_separator_func(), init_font_families(), and show_results().
|
private |
Definition at line 345 of file font-lister.h.
Referenced by get_font_count_label(), get_font_list(), init_font_families(), and show_results().
FontStyleListClass Inkscape::FontLister::font_style_list |
Definition at line 143 of file font-lister.h.
Referenced by font_lister_style_cell_data_func(), FontLister(), Inkscape::UI::Widget::FontSelector::FontSelector(), and init_default_styles().
|
private |
Definition at line 365 of file font-lister.h.
Referenced by connectNewFonts(), and FontLister().
std::map<std::string, PangoFontFamily *> Inkscape::FontLister::pango_family_map |
The list of fonts, sorted by the order they will appear in the UI.
Also used to give log-time access to each font's PangoFontFamily, owned by the FontFactory.
Definition at line 149 of file font-lister.h.
Referenced by font_installed_on_system(), FontLister(), get_font_families_size(), init_font_families(), and show_results().
|
private |
Definition at line 346 of file font-lister.h.
Referenced by FontLister(), get_style_list(), and init_default_styles().
|
private |
Definition at line 364 of file font-lister.h.
Referenced by connectUpdate(), and init_default_styles().