Fractional metrics should not disable embedded bitmaps

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 1.2.2
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: