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

RFE: Remove mapping of space to underscore in font names

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs
    • None
    • Fix Understood
    • generic
    • generic

      The font configuration file specification prescribes that font names used in filename properties have space characters replaced by underscore characters. Presumable this was introduced in ancient times because space characters can't be used directly in property keys (but there is an escape syntax for them).

      In the current implementation of FontConfiguration, the mapping is actually reversed, and the class has specific knowledge of a font name where the mapping should not be reversed because the font name actually includes an underscore character. This is rather fragile and would break if a new font showed up that also included an underscore in its name.

      To remove this risk, the mapping from space to underscore (and back) should be removed from spec and implementation. The font configuration files would then have to use "\ " for " ".

            naoto Naoto Sato
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: