[librsvg: 4/7] Define the glyph-orientation-vertical property




commit efd2084fc7606dec56966a1acbea3d14ba75d71a
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Oct 26 11:30:55 2021 -0500

    Define the glyph-orientation-vertical property
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/622>

 src/property_defs.rs | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/src/property_defs.rs b/src/property_defs.rs
index 2ce83dbf5..affeb3d42 100644
--- a/src/property_defs.rs
+++ b/src/property_defs.rs
@@ -499,6 +499,17 @@ make_property!(
     }
 );
 
+make_property!(
+    // docs are in font_props.rs
+    //
+    // Although https://www.w3.org/TR/css-writing-modes-3/#propdef-glyph-orientation-vertical specifies
+    // "n/a" for both the initial value (default) and inheritance, we'll use Auto here for the default,
+    // since it translates to TextOrientation::Mixed - which is text-orientation's initial value.
+    GlyphOrientationVertical,
+    default: GlyphOrientationVertical::Auto,
+    inherits_automatically: false,
+);
+
 make_property!(
     // docs are in font_props.rs
     LetterSpacing,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]