diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2013-02-06 09:07:00 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2013-02-06 09:07:00 +0000 |
| commit | aeabdef63219b5369907c767f692e929013c3507 (patch) | |
| tree | 6ea92b7f624bf612f5290955a9913d7c3f92d198 /src/libnrtype | |
| parent | Supress Pango error message. (diff) | |
| download | inkscape-aeabdef63219b5369907c767f692e929013c3507.tar.gz inkscape-aeabdef63219b5369907c767f692e929013c3507.zip | |
Add fonts (and font-lists) used in document to top of Text tool-bar font-family drop-down menu.
If font is not on system, draws strikethrough on top of font name.
(bzr r12104)
Diffstat (limited to 'src/libnrtype')
| -rw-r--r-- | src/libnrtype/font-lister.cpp | 2 | ||||
| -rw-r--r-- | src/libnrtype/font-lister.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp index 710e0b84f..6df576866 100644 --- a/src/libnrtype/font-lister.cpp +++ b/src/libnrtype/font-lister.cpp @@ -52,7 +52,7 @@ namespace Inkscape } (*treeModelIter)[FontList.styles] = styles; - + (*treeModelIter)[FontList.onSystem] = true; font_list_store_iter_map.insert(std::make_pair(familyName, Gtk::TreePath(treeModelIter))); } } diff --git a/src/libnrtype/font-lister.h b/src/libnrtype/font-lister.h index c9ab7b21d..7a7db5615 100644 --- a/src/libnrtype/font-lister.h +++ b/src/libnrtype/font-lister.h @@ -54,10 +54,15 @@ namespace Inkscape */ Gtk::TreeModelColumn<GList*> styles; + /** Column containing flag if font is on system + */ + Gtk::TreeModelColumn<gboolean> onSystem; + FontListClass () { add (font); add (styles); + add (onSystem); } }; |
