Fix FontMetrics caching when two font with same attributes are loaded

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 17, 21, 25, 27
    • Component/s: client-libs
    • None
    • generic
    • generic

      java/awt/font/TextLayout/FormatCharAdvanceTest.java has 2 fonts with same familyname, style, size and FontRenderContext but their Font format is different.

      Even when second font(TrueType) is set on Graphics2D object, we continue to use cached and invalid FontMetrics of Type1 font.

      We should update the FontMetrics caching logic so that it differentiates between such fonts.

            Assignee:
            Jayathirth D V
            Reporter:
            Jayathirth D V
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: