Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8362197

DW: Font lookup does not support localized font names

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx24
    • javafx
    • None

      OpenType fonts support localized names for family, full name etc.
      At least on Windows, using DirectWrite, it appears that lookup will fail if the supplied string doesn't match the presentation name for the user's locale.

      We should add code which does this "by hand" for failed look ups.
      A DW-specific fix would at least help Windows, although what would also help is APIs which report the localized names for fonts.


      String getName(Locale)
      and/or
      String[] getLocalizedNames()
      or
      record NameLocale { Locale l, String n }
      NameLocale[] getLocalizedNames

      same again for Family.

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: