Forums Register Login

Some fonts render, some fonts don't

+Pie Number of slices to send: Send
Using the normal drawString method of the Graphics object on a JPanel, I render different fonts (no fancy characters, just your basic abc). They can be selected by the user from a list of fonts obtained from the GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() method. Now some fonts can be rendered and some fonts only display squares. The same fonts can be used without problems by other programs (Word, Photoshop, ...). Is there an additional requirement for a ttf font to be displayable by Java?
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 733 times.
Similar Threads
Identify Monospaced Fonts
Java2 v5.0 and i18n ?????
How to use fonts other than OS provided fonts.
UTF-8 font Support
Font problems on unix systems
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:51:24.