You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2001/04/08 16:02:05 UTC

cvs commit: xml-fop/src/org/apache/fop/fonts TTFSubSetFile.java

kellyc      01/04/08 07:02:05

  Modified:    src/org/apache/fop/fonts TTFSubSetFile.java
  Log:
  Bugfix for font headers with long datatype
  Submitted by: Rafal Maczewski
  
  Revision  Changes    Path
  1.2       +4 -3      xml-fop/src/org/apache/fop/fonts/TTFSubSetFile.java
  
  Index: TTFSubSetFile.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fonts/TTFSubSetFile.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TTFSubSetFile.java	2001/03/23 08:41:34	1.1
  +++ TTFSubSetFile.java	2001/04/08 14:02:05	1.2
  @@ -1,4 +1,4 @@
  -/* -- $Id: TTFSubSetFile.java,v 1.1 2001/03/23 08:41:34 fotis Exp $
  +/* -- $Id: TTFSubSetFile.java,v 1.2 2001/04/08 14:02:05 kellyc Exp $
    *
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
  @@ -277,7 +277,8 @@
            output[currentPos+9] = 0;
            output[currentPos+10] = 0;
            output[currentPos+11] = 0;
  -         output[currentPos+(int)entry.length-2] = 0; // long locaformat
  +         output[currentPos+50] = 0; // long locaformat
  +         output[currentPos+51] = 1; // long locaformat
   
            int checksum = getCheckSum(currentPos, (int)entry.length);
            writeULong(headDirOffset, checksum);
  @@ -341,7 +342,7 @@
   
            size = currentPos - start;
   
  -         int checksum = getCheckSum(currentPos, size);
  +         int checksum = getCheckSum(start, size);
            writeULong(glyfDirOffset, checksum);
            writeULong(glyfDirOffset+4, start);
            writeULong(glyfDirOffset+8, size);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org