Re: [ft] Creating an [OT]TF font from BDF font

George Williams <[email protected]> 16 Dec 2005 15:14:46 -0800
Newsgroups gmane.comp.fonts.freetype.user,gmane.comp.xfree86.fonts
Organization PfaEdit
Message-ID <1134774861.1361.103.camel@lynch>
--=-l2m19sgh/IOfIPZMpYpR
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2005-12-08 at 10:29, Juliusz Chroboczek wrote:
> You will find what I believe is the most up-to-date version of
> fonttosfnt in the X.Org CVS tree.  There's also a version in XFree86,
> but I'm not sure it has been kept up to date.
I believe the entrySel field in the table directory of the output sfnt
is off by 1.



--=-l2m19sgh/IOfIPZMpYpR
Content-Disposition: attachment; filename=entrySel.patch
Content-Type: text/x-patch; name=entrySel.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit

*** write.c~	2005-12-16 15:10:29.000000000 -0800
--- write.c	2005-12-16 15:10:29.000000000 -0800
***************
*** 358,364 ****
      writeULONG(out, 0x10000);   /* version */
      writeUSHORT(out, numTables); /* numTables */
      writeUSHORT(out, 16 * ti);  /* searchRange */
!     writeUSHORT(out, i - 1);    /* entrySelector */
      writeUSHORT(out, 16 * (numTables - ti)); /* rangeShift */
  
      /* see fixupDir */
--- 358,364 ----
      writeULONG(out, 0x10000);   /* version */
      writeUSHORT(out, numTables); /* numTables */
      writeUSHORT(out, 16 * ti);  /* searchRange */
!     writeUSHORT(out, i);        /* entrySelector */
      writeUSHORT(out, 16 * (numTables - ti)); /* rangeShift */
  
      /* see fixupDir */

--=-l2m19sgh/IOfIPZMpYpR
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

--=-l2m19sgh/IOfIPZMpYpR--