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
f79d1277
Commit
f79d1277
authored
May 03, 2021
by
XueShuming
Browse files
impl svg->font_stretch
parent
29cb4f03
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/hidomlayout.h
View file @
f79d1277
...
...
@@ -532,6 +532,21 @@ typedef enum HLStrokeLinecapEnum_ {
HL_STROKE_LINECAP_SQUARE
=
0x3
}
HLStrokeLinecapEnum
;
typedef
enum
HLFontStretchEnum_
{
HL_FONT_STRETCH_INHERIT
=
0x0
,
HL_FONT_STRETCH_NORMAL
=
0x1
,
HL_FONT_STRETCH_WIDER
=
0x2
,
HL_FONT_STRETCH_NARROWER
=
0x3
,
HL_FONT_STRETCH_ULTRA_CONDENSED
=
0x4
,
HL_FONT_STRETCH_EXTRA_CONDENSED
=
0x5
,
HL_FONT_STRETCH_CONDENSED
=
0x6
,
HL_FONT_STRETCH_SEMI_CONDENSED
=
0x7
,
HL_FONT_STRETCH_SEMI_EXPANDED
=
0x8
,
HL_FONT_STRETCH_EXPANDED
=
0x9
,
HL_FONT_STRETCH_EXTRA_EXPANDED
=
0xa
,
HL_FONT_STRETCH_ULTRA_EXPANDED
=
0xb
}
HLFontStretchEnum
;
typedef
struct
HLUsedSvgValues_
{
HLBaseLineShiftEnum
baseline_shift
;
char
*
clip_path
;
...
...
@@ -565,6 +580,8 @@ typedef struct HLUsedSvgValues_ {
HLFloodOpacityEnum
flood_opacity_type
;
hl_real_t
flood_opacity
;
HLFontStretchEnum
font_stretch
;
char
*
marker_end
;
char
*
mask
;
char
*
marker_mid
;
...
...
src/layout/src/node.c
View file @
f79d1277
...
...
@@ -320,6 +320,7 @@ HLUsedSvgValues* hilayout_element_node_get_used_svg_value(HLDomElementNode* node
// font-family
// font-size
// font-stretch
svg
->
font_stretch
=
css_computed_font_stretch
(
style
);
// font-style
// font-variant
// font-weight
...
...
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