RFE: Add TextAttributes for OpenType font figure style features

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: client-libs
    • 2d
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Any OS. Tested on JDK21 (and checked other jdks - there no options)

      A DESCRIPTION OF THE PROBLEM :
      Hello. Not monospaces font often have different widths for numbers. For example if use font *Inter*, and create it using JLabel will be different size of JLabel

      11111 | some word | 1

      vs

      00000 | some word | 1

      But Inter font has different options for it - Inter font supports - Figure Styles.

      There some info here (https://typenetwork.com/articles/opentype-at-work-figure-styles#)

      Also there CSS option for set different behavior font-variant-numeric: tabular-nums;

      Need API for creating Font with additional options


            Assignee:
            Philip Race
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: