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

Fractional metrics should not disable embedded bitmaps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.2.2
    • client-libs
    • 2d
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: