diff options
| author | Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org> | 2017-06-13 00:08:50 +0000 |
|---|---|---|
| committer | Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org> | 2017-06-22 00:04:53 +0000 |
| commit | 0edfdf950796befdb42ab9b2ef76c76483d9dbb1 (patch) | |
| tree | 5ef162470f99f836f88858140ca575c710fe6eaf /src/style.cpp | |
| parent | Do not strip file extension in CUSTOM_TYPE Windows native file save dialogs (diff) | |
| download | inkscape-0edfdf950796befdb42ab9b2ef76c76483d9dbb1.tar.gz inkscape-0edfdf950796befdb42ab9b2ef76c76483d9dbb1.zip | |
parsing font-variation-settings (CSS Fonts Module Level 4)
Diffstat (limited to 'src/style.cpp')
| -rw-r--r-- | src/style.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/style.cpp b/src/style.cpp index 0b0358bb2..08dbcd38b 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -115,6 +115,9 @@ SPStyle::SPStyle(SPDocument *document_in, SPObject *object_in) : font_variant_east_asian("font-variant-east-asian", enum_font_variant_east_asian, SP_CSS_FONT_VARIANT_EAST_ASIAN_NORMAL ), font_feature_settings( "font-feature-settings", "normal" ), + // Variable Fonts + font_variation_settings( "font-variation-settings" ), // SPIVariableFontAxisOrNormal + // Text related properties text_indent( "text-indent", 0.0 ), // SPILength text_align( "text-align", enum_text_align, SP_CSS_TEXT_ALIGN_START ), @@ -298,6 +301,9 @@ SPStyle::SPStyle(SPDocument *document_in, SPObject *object_in) : _properties.push_back( &font_variant_east_asian ); _properties.push_back( &font_feature_settings ); + // Variable Fonts + _properties.push_back( &font_variation_settings ); + _properties.push_back( &text_indent ); _properties.push_back( &text_align ); @@ -741,6 +747,10 @@ SPStyle::readIfUnset( gint id, gchar const *val, SPStyleSrc const &source ) { font_feature_settings.readIfUnset( val, source ); break; + case SP_PROP_FONT_VARIATION_SETTINGS: + font_variation_settings.readIfUnset( val, source ); + break; + /* Text */ case SP_PROP_TEXT_INDENT: text_indent.readIfUnset( val, source ); |
