Implement basic support for native animation of font size

This commit is contained in:
Mikael Sand
2019-02-17 03:29:59 +02:00
parent ccb8026462
commit 9b1ccf0e7f
4 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ function parseFontString(font) {
const isBold = /bold/.exec(match[1]);
const isItalic = /italic/.exec(match[1]);
cachedFontObjectsFromString[font] = {
fontSize: match[2] || '12',
fontSize: match[2] || 12,
fontWeight: isBold ? 'bold' : 'normal',
fontStyle: isItalic ? 'italic' : 'normal',
fontFamily: extractSingleFontFamily(match[3]),