Improve fontSize handling

This commit is contained in:
Mikael Sand
2017-07-22 23:02:37 +03:00
parent 147c4fdf7d
commit eaf7b5e88b
2 changed files with 24 additions and 9 deletions

View File

@@ -62,7 +62,7 @@ export function extractFont(props) {
letterSpacing: props.letterSpacing,
fontWeight: props.fontWeight,
fontStyle: props.fontStyle,
fontSize: props.fontSize,
fontSize: props.fontSize ? '' + props.fontSize : null,
kerning: props.kerning,
};