Skip to content

Error add font thai  #342

Description

@mustakeam

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions