Commit 79765917 authored by XueShuming's avatar XueShuming
Browse files

impl svg->font_style

parent d3f953bf
......@@ -564,6 +564,13 @@ typedef enum HLSvgFontWeightEnum_ {
HL_FONT_WEIGHT_900 = 0xd
} HLSvgFontWeightEnum;
typedef enum HLFontStyleEnum_ {
HL_FONT_STYLE_INHERIT = 0x0,
HL_FONT_STYLE_NORMAL = 0x1,
HL_FONT_STYLE_ITALIC = 0x2,
HL_FONT_STYLE_OBLIQUE = 0x3
} HLFontStyleEnum;
typedef struct HLUsedSvgValues_ {
HLBaseLineShiftEnum baseline_shift;
char* clip_path;
......@@ -598,6 +605,7 @@ typedef struct HLUsedSvgValues_ {
hl_real_t flood_opacity;
HLFontStretchEnum font_stretch;
HLFontStyleEnum font_style;
HLSvgFontWeightEnum font_weight;
char* marker_end;
......
......@@ -322,6 +322,7 @@ HLUsedSvgValues* hilayout_element_node_get_used_svg_value(HLDomElementNode* node
// font-stretch
svg->font_stretch = css_computed_font_stretch(style);
// font-style
svg->font_style = css_computed_font_style(style);
// font-variant
// font-weight
svg->font_weight = css_computed_font_weight(style);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment