We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug PdfViewer render blank screen when korean font applied
To Reproduce
@react-pdf/renderer
Font.register({ family: "Nanum Gothic", src: "https://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.ttf", })
bug reproduce repository: https://github.com/AMATEURTOSS/react-pdf-bug
Expected behavior Render korean
Desktop:
Code
'use client' import { PDFViewer, Font, Document, Page, Text } from '@react-pdf/renderer' import dynamic from 'next/dynamic' Font.register({ family: 'Nanum Gothic', src: 'https://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.ttf' }) function Home() { return ( <div style={{ width: '100vw', height: '100vh' }}> <PDFViewer width='100%' height='100%'> <Document> <Page size='A4' style={{ paddingTop: 35, paddingBottom: 65, paddingHorizontal: 35, }}> <Text style={{ margin: 12, fontSize: 14, textAlign: 'justify', fontFamily: 'Nanum Gothic' // when remove this line, its work! }}> 안녕하세요 (Korean) </Text> </Page> </Document> </PDFViewer> </div> ) } export default dynamic(() => Promise.resolve(Home), { ssr: false })
Maybe related PR
#2302
The text was updated successfully, but these errors were encountered:
problem solved check below
#2675 (comment)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
PdfViewer render blank screen when korean font applied
To Reproduce
@react-pdf/renderer
Font.register({ family: "Nanum Gothic", src: "https://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.ttf", })
bug reproduce repository: https://github.com/AMATEURTOSS/react-pdf-bug
Expected behavior
Render korean
Desktop:
Code
Maybe related PR
#2302
The text was updated successfully, but these errors were encountered: