File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ drawing.font = function(s, font) {
34
34
var color = font . color ;
35
35
var size = font . size ;
36
36
var family = font . family ;
37
+ var shadow = font . shadow ;
38
+ var striding = font . striding ;
39
+ var capitalize = font . capitalize ;
37
40
38
41
if ( family ) s . style ( 'font-family' , family ) ;
39
42
if ( size + 1 ) s . style ( 'font-size' , size + 'px' ) ;
@@ -42,6 +45,10 @@ drawing.font = function(s, font) {
42
45
if ( weight ) s . style ( 'font-weight' , weight ) ;
43
46
if ( style ) s . style ( 'font-style' , style ) ;
44
47
if ( variant ) s . style ( 'font-variant' , variant ) ;
48
+
49
+ if ( shadow ) s . style ( 'text-shadow' , shadow === 'auto' ? svgTextUtils . makeTextShadow ( Color . contrast ( color ) ) : shadow ) ;
50
+ if ( striding ) s . style ( 'text-decoration-line' , striding ) ;
51
+ if ( capitalize ) s . style ( 'text-transform' , capitalize === 'word' ? 'capitalize' : capitalize ) ;
45
52
} ;
46
53
47
54
/*
You can’t perform that action at this time.
0 commit comments