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

Support setting 'Figure Styles' while creating AWT Font

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • 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


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

              Created:
              Updated: