Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HybridOS
hiDOMLayout
Commits
79765917
Commit
79765917
authored
May 03, 2021
by
XueShuming
Browse files
impl svg->font_style
parent
d3f953bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/hidomlayout.h
View file @
79765917
...
...
@@ -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
;
...
...
src/layout/src/node.c
View file @
79765917
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment