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

Need to support OpenType font variations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • None
    • client-libs
    • None
    • 2d

      This is somewhere between a bug and an enhancement.

      Font resources using OpenType font variations
      (see https://learn.microsoft.com/en-us/typography/develop/font-variations)
      are not understood by the JDK

      As a result fonts that we enumerate via platform APIs are not able to be resolved to the right font resource, nor be properly rendered.

      macOS and Windows 11 are making increasing use of these.
      On windows 11 there are at least these files
      SegUIVar.ttf
      SitkaVF.ttf
      SitkaVF-Italic.ttf
      bahnscrift.ttf
      CascadiaCode.ttf
      CascadiaMono.ttf
      NHaasGroteskTXPro-It.ttf
      NHaasGroteskTXPro-Rg.ttf

      Each of these contain multiple variations but we only find the default.

      We should at least correctly find and use all named instances in a variation font.

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

              Created:
              Updated: