Closed vioku closed 7 months ago
Solved
how?
open YOURPROJECT\node_modules\react-native-image-marker\android\src\main\java\com\jimmydaddy\imagemarker\base\TextOptions.kt
and go to line 78
change this
var typeface = Typeface.create(Typeface.DEFAULT, Typeface.NORMAL)
to this
var typeface = Typeface.create(ReactFontManager.getInstance() .getTypeface(style.fontName!!, Typeface.NORMAL, context.assets), Typeface.NORMAL)
@vioku Can you submit a PR for this fix? ๐
@vioku Can you submit a PR for this fix? ๐
Done Sir @JimmyDaddy ๐๐ฅ
` const options = { backgroundImage: { src: response.assets[0].uri, scale: 1, }, watermarkTexts: [ { text: 'hello-' + Date.now(), positionOptions: { position: Position.center, }, style: { color: '#ff00ff', fontSize: 30, fontName: 'OoohBaby-Regular',
Whats wrong ? custom font not work
i have tested on my font show correctly
<Text className="text-white font-[OoohBaby-Regular] text-3xl text-center"> Testing Font </Text>