diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-06-03 10:48:37 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-06-03 10:48:37 +0000 |
| commit | f604735e9a2cf37626915adec0064010d844d998 (patch) | |
| tree | 9cf26afddab37c25531079a53d09c8174926b968 /src/ui/widget | |
| parent | Fixes on convert to paths LPE shapes (diff) | |
| download | inkscape-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.cpp | 6 | ||||
| -rw-r--r-- | src/ui/widget/font-variants.h | 5 |
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 ); |
