Skip to content

Commit

Permalink
fix font (android)
Browse files Browse the repository at this point in the history
  • Loading branch information
vioku committed Jan 22, 2024
1 parent 580bc26 commit 633e9fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ data class TextOptions(val options: ReadableMap) {
textPaint.color = Color.parseColor(Utils.transRGBColor(style.color))
textPaint.isUnderlineText = style.underline
textPaint.textSkewX = style.skewX!!
var typeface = Typeface.create(Typeface.DEFAULT, Typeface.NORMAL)
var typeface = Typeface.create(ReactFontManager.getInstance() .getTypeface(style.fontName!!, Typeface.NORMAL, context.assets), Typeface.NORMAL)
if (style.italic && style.bold) {
typeface = Typeface.create(Typeface.DEFAULT, Typeface.BOLD_ITALIC)
} else if (style.italic) {
Expand Down

0 comments on commit 633e9fa

Please sign in to comment.