-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
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
Error add font thai #342
Comments
I think you should include jar of Thai font as a report "resources" ps. i saw this #344 |
I have the smae problem. I fix it by add .ttf font into Java\jreX.X.X_XXX\lib\fonts folder and add pdfFontName into .jrxml file and it work (but i don't know how it work) |
did you solve this error? |
could you explain one more again? |
My font in file .jrxml look like this
|
I don't know docker and this problem so much but can you try this for me pls
|
How to fix


Fatal error: Uncaught PHPJasper\Exception\ErrorCommandExecutable: Exception in thread "main" net.sf.jasperreports.engine.util.JRFontNotFoundException: Font "THSarabunNew" is not available to the JVM. See the Javadoc for more details. at net.sf.jasperreports.engine.fonts.FontUtil.checkAwtFont(FontUtil.java:604) at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.loadFont(SimpleTextLineWrapper.java:384) at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.getGeneralFontInfo(SimpleTextLineWrapper.java:354) at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.createFontInfo(SimpleTextLineWrapper.java:294) at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.start(SimpleTextLineWrapper.java:256) at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:543) at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:665) at net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:179) at net.sf.jasperreports in C:\xampp\htdocs\phpjasper\src\PHPJasper.php on line 251
The text was updated successfully, but these errors were encountered: