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

Fractional metrics should not disable embedded bitmaps

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      generic

      Description

      The Java 2D font implementation disables accessing and using embedded bitmaps
      in a TrueType font when the FontRenderContext specifies fractional metrics
      The reason for this appears to be that the metrics (in particular the linear
      X advance) for the glyph obtained by T2k in this case is bogus. Its not from
      the HMTX table, its from the bitmap metrics

      See T2K_GetSbits(..)
      ..
      scaler->xAdvanceWidth16Dot16 = gInfo->bigM.horiAdvance;
      ..
      scaler->xLinearAdvanceWidth16Dot16 = scaler->xAdvanceWidth16Dot16;

      The upshot of this is that turning on FM can severely degrade the quality
      of the image for many CJK fonts when really it ought not to affect the image.

      If we can make this return the linear metrics as per teh HMTX table we
      can stop disabling sbits in this case.

      ###@###.### 2005-05-18 20:32:16 GMT

        Attachments

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              prr Philip Race
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: