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

why WCFontImpl#getXHeight() does not use Metrics#getXHeight()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • javafx
    • None
    • web

      In the implementation of WCFontImpl#getXHeight() it uses the height of "x" (or 56% of the ascent) to calculate the x height.

      Why can't it use:
      getFontStrike().getMetrics().getXHeight();
      ?

      The implementation of getXHeight() uses, in the order:
      1) x height information on the os_2 table
      2) height of "x"
      3) 60% of ascent

      (note getFontStrike().getMetrics().getXHeight() is a positive value)

            peterz Peter Zhelezniakov
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: