Skip to content
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

Open
mustakeam opened this issue May 24, 2024 · 1 comment
Open

Error add font thai #342

mustakeam opened this issue May 24, 2024 · 1 comment

Comments

@mustakeam
Copy link

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
image
image

@polppol
Copy link

polppol commented Oct 7, 2024

I think you should include jar of Thai font as a report "resources"
for jasperstarter You can do it like "jasperstarter pr myreport.jasper -f view -r myresources.jar"
but not sure how to do it with PHPJasper
I still finding too,

ps. i saw this #344
but no one answer yet of how to add external resources with PHPJasper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants