How To Fix “java.io.IOException: Problem reading font data.” When Load Customized TTF In Java.

how-to-fix-“javaioioexception:-problem-reading-font-data”-when-load-customized-ttf-in-java.

Yesterday, my colleague said the service had a problem loading the customized font — NotoSerif-Regular.ttf on our SIT, but it worked on local, the error was as follows:

Image description

After trying several methods, although it was resolved, I still have many questions.

Our containerized service uses the base container image – amazoncorretto:19-alpine.

Below is the solution and it seems that the font-noto package must be installed first, or the problem will exist again.

Image description

However, I can only treat it as a workaround but not a good solution.

Because the package I installed contained the TTF file of font covered in the source code developed by our software engineer.

Although I am still looking for the answer, I hope someone encountering this issue can fix the problem quickly.

If someone has known the answer, please casually leave a comment to share your knowledge with us, big thanks!

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
how-to-survive-the-next-phase-of-tech-–-jonty-sharples-(product-and-strategy-consultant)

How to survive the next phase of tech – Jonty Sharples (Product and Strategy Consultant)

Next Post
product-management-books-to-read-this-summer-and-beyond

Product management books to read this summer and beyond

Related Posts
mariadb-109-on-openbsd-7.3:-インストール

MariaDB 10.9 on OpenBSD 7.3: インストール

はじめに MariaDB は広く使われているリレーショナル (関係) データベース管理システム (RDBMS) の一つです。MySQL から、オリジナルの開発者たちの一部によってフォークされました。 オープンソースであり、GNU GPL 2 で ライセンスされています。長い歴史と管理維持のための知見の蓄積があり、コミュニティでも企業でも使えます。 堅牢でクリーンなオペレーティング・システムである OpenBSD へのインストールは容易です。パッケージ管理 (英語) システム…
Read More