summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-06-03 10:48:37 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-06-03 10:48:37 +0000
commitf604735e9a2cf37626915adec0064010d844d998 (patch)
tree9cf26afddab37c25531079a53d09c8174926b968 /src/ui/widget
parentFixes on convert to paths LPE shapes (diff)
downloadinkscape-f604735e9a2cf37626915adec0064010d844d998.tar.gz
inkscape-f604735e9a2cf37626915adec0064010d844d998.zip
Keep Features tab in sync with font in Font tab.
Diffstat (limited to 'src/ui/widget')
-rw-r--r--src/ui/widget/font-variants.cpp6
-rw-r--r--src/ui/widget/font-variants.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/widget/font-variants.cpp b/src/ui/widget/font-variants.cpp
index 72e67f88b..1c8815499 100644
--- a/src/ui/widget/font-variants.cpp
+++ b/src/ui/widget/font-variants.cpp
@@ -423,6 +423,12 @@ namespace Widget {
_feature_label.hide();
}
+ update_opentype( font_spec );
+ }
+
+ // Update GUI based on OpenType tables of selected font (which may be changed in font selector tab).
+ void
+ FontVariants::update_opentype (Glib::ustring& font_spec) {
// Disable/Enable based on available OpenType tables.
font_instance* res = font_factory::Default()->FaceFromFontSpecification( font_spec.c_str() );
diff --git a/src/ui/widget/font-variants.h b/src/ui/widget/font-variants.h
index 023bc8ef2..e6eeebd5f 100644
--- a/src/ui/widget/font-variants.h
+++ b/src/ui/widget/font-variants.h
@@ -148,6 +148,11 @@ public:
void update( SPStyle const *query, bool different_features, Glib::ustring& font_spec );
/**
+ * Update GUI based on OpenType features of selected font.
+ */
+ void update_opentype( Glib::ustring& font_spec );
+
+ /**
* Fill SPCSSAttr based on settings of buttons.
*/
void fill_css( SPCSSAttr* css );