Fix regular italic variant
This commit is contained in:
@@ -56,6 +56,10 @@ export function applyFonts(style: Record<string, any>) {
|
|||||||
}[style.fontWeight as string] || 'Inter-Regular'
|
}[style.fontWeight as string] || 'Inter-Regular'
|
||||||
|
|
||||||
if (style.fontStyle === 'italic') {
|
if (style.fontStyle === 'italic') {
|
||||||
|
if (style.fontFamily === 'Inter-Regular') {
|
||||||
|
style.fontFamily = 'Inter-Italic'
|
||||||
|
} else {
|
||||||
style.fontFamily += 'Italic'
|
style.fontFamily += 'Italic'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user