0 Replies Latest reply: Jul 27, 2009 3:04 AM by 843810 RSS

    Fonts and I18n


      I found some threads in this forum that already deal with the topic of how to find out if a font can handle a language [1]. However, the conclusion is to call Font.canDisplay() on one or more language specific characters. Since this threads are already a few years old, I wanted to find out if there's some better way to do it?

      It'd be cool if the following code snipped would work:
      Locale locale= new Locale("ja","JP");
      GraphicsEnvironment grp = GraphicsEnvironment.getLocalGraphicsEnvironment();
      String[] str = grp.getAvailableFontFamilyNames(locale);
      Thanks in advance,