Custom Fonts in Java
问题 How to fix problem with custom fonts in Java? For example, my app uses font, that isn't on all computers. Can I somehow include it in compiled executable and then call it from there, if it doesn't exists on clients computer? What are other alternatives? I could make all fonts chars as images (before, in some graphics app) and then display image for each char... is it ok? 回答1: Here's an utility method I'm using to load a font file from a .ttf file (can be bundled): private static final Font