diff --git a/android/src/main/java/com/jimmydaddy/imagemarker/base/TextOptions.kt b/android/src/main/java/com/jimmydaddy/imagemarker/base/TextOptions.kt index 08461717..90fd2b76 100644 --- a/android/src/main/java/com/jimmydaddy/imagemarker/base/TextOptions.kt +++ b/android/src/main/java/com/jimmydaddy/imagemarker/base/TextOptions.kt @@ -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) {