Skip to content

Instantly share code, notes, and snippets.

@teocci
Last active July 12, 2016 10:11
Show Gist options
  • Save teocci/4586eca1c27610c5d1080b4adba9ac63 to your computer and use it in GitHub Desktop.
Save teocci/4586eca1c27610c5d1080b4adba9ac63 to your computer and use it in GitHub Desktop.
JAVA does not display apple gothic font

Font Compatibility: JAVA

JAVA does not display apple gothic font

  1. Why does a Latin-characters-only Java font claim to support Asian characters, even though it does not? Stackoverflow

  2. Java can't see all installed fonts in system Stackoverflow

  3. Java fonts - how to list of all the available fonts

package com.devdaily.javasamples;

import java.awt.GraphicsEnvironment;

public class ListJavaFonts
{

 public static void main(String[] args)
 {
   String fonts[] = 
     GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();

   for ( int i = 0; i < fonts.length; i++ )
   {
     System.out.println(fonts[i]);
   }
 }

}

JAVA does not display Fonts properly

  1. Fonts do not display correctly - Java Stackoverflow

  2. Displaying urdu characters in JTextPane Stackoverflow

  3. JAVA fonts not displaying properly Stackoverflow

How to get Font File path in JAVA

How can I use a custom font in Java? Stackoverflow

Get font file as a File object or get its path Stackoverflow

References

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