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

Eliminate dependency on sun.text from font code

XMLWordPrintable

    • 2d
    • b22

      The font code has an undesirable dependency on internal text classes that should be re-examined with a view to eliminating the dependency:

      java.awt.font.StyledParagraph -> sun.text.CodePointIterator (java.base)
      java.awt.font.TextLayout -> sun.text.CodePointIterator (java.base)
      java.awt.font.TextLine -> sun.text.CodePointIterator (java.base)
      sun.font.FontResolver -> sun.text.CodePointIterator (java.base)

      Note that the font code is the only consumer of sun.text.CodePointIterator and a simple first step is to just move this class to sun.font.

      A better solution is to look at the new codePoints() methods in CharSequence to see if that could be used instead. It requires understanding the usage in the font code to see if this is feasible or not.

            prr Philip Race
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: