Closed DeepakKapiswe closed 4 years ago
Finally after struggling a lot, I came across this post comment and now all is working fine, just follow his words! Thanks a lot. https://github.com/diegomura/react-pdf/issues/807#issuecomment-577136660
I am trying the similar thing. Hindi or Devnagari fonts. But this is the error I get. It would be great if anyone could help!
Imports
import notoSans from "../Fonts/Karma/Regular1.ttf";
Font.register({
family: "Karma-400",
src: notoSans,
fontWeight: 400,
});
Error: Could not resolve font for Karma-400, fontWeight 400
resolve font.js:141
getFont index.js:48
_callee$ index.js:57
Babel 8
fetchAssets resolveAssets.js:47
_callee$ resolveAssets.js:84
Babel 8
_callee$ asyncCompose.js:60
Babel 20
_callee$ index.js:35
Babel 8
_callee2$ index.js:58
Babel 8
queueDocumentRender dom.js:26
start index.js:145
method index.js:59
queueDocumentRender dom.js:26
onChange index.js:22
commitRootImpl react-reconciler.development.js:15046
index.js:1
e index.js:1
overrideMethod react_devtools_backend.js:2842
onRenderFailed dom.js:32
emit events.js:153
next index.js:108
start index.js:150
(Async: promise callback)
start index.js:149
method index.js:59
queueDocumentRender dom.js:26
onChange index.js:22
commitRootImpl react-reconciler.development.js:15046
unstable_runWithPriority scheduler.development.js:818
runWithPriority react-reconciler.development.js:1884
commitRoot react-reconciler.development.js:14909
finishSyncRender react-reconciler.development.js:14313
performSyncWorkOnRoot react-reconciler.development.js:14291
flushSyncCallbackQueueImpl react-reconciler.development.js:1934
unstable_runWithPriority scheduler.development.js:818
runWithPriority react-reconciler.development.js:1884
flushSyncCallbackQueueImpl react-reconciler.development.js:1929
flushSyncCallbackQueue react-reconciler.development.js:1917
scheduleUpdateOnFiber react-reconciler.development.js:13693
updateContainer react-reconciler.development.js:17081
updateContainer index.js:30
usePDF dom.js:47
React 5
unstable_runWithPriority scheduler.development.js:468
React 4
unstable_runWithPriority scheduler.development.js:468
React 17
js index.js:87
js main.chunk.js:13404
Webpack 7
how to pirnt arabic in
guys, with react-pdf/renderer an unable to load the Hindi text in pdf using react. with front-end text: हिंदी में किसी Break 52 output in pdf:9?&@ .G ?8@
any one
guys, with react-pdf/renderer an unable to load the Hindi text in pdf using react. with front-end text: हिंदी में किसी Break 52 output in pdf:9?&@ .G �?8@
any one bro download trio devangiri font from google fonts it wil work fine i came across this issue too it fixed this issue
Hello Team, Thanks for this nice library it does exactly what I wanted , for me English characters are getting printed well but the unicode characters not changed with some numbers, (those unicode characters are from Devnagri Hindi script) please let me know what to do , so that I get the pdf correctly?
I get this in place of names like -> श्री हरी नारायण
while I changed the code to include fonts, please correct me if I'm missing something. my code snippet
The error I get
Please help Thanks in Advance