You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Cristi Ruja <c_...@yahoo.com> on 2001/08/24 09:42:42 UTC

bug in fop.font


  Hi,
  my name is Ruja Cristi
  I found a bug in fop.fonts package
  the leftSideBearing value of the class TTFMtxEntry is of type "short" but you read it as an UnsignedShort.
  So all you have to do to fix the BUG is to modify in class TTFFile, in the method  "readHorizontalMetrics(FontFileReader in)"
   the line:
      mtx_tab[i].lsb = in.readTTFUShort() and replace with mtx_tab[i].lsb = in.readTTFShort()
  and that's all
  Best,