freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] ttfautohint: How to install


From: Werner LEMBERG
Subject: Re: [ft-devel] ttfautohint: How to install
Date: Thu, 30 Jun 2011 15:05:14 +0200 (CEST)

> FYI i had noticed a possible issue with the sizing in relation to
> the 'fpgm' on all tffautohint generated fonts. When i check them in
> 'OTMaster', the 'maxSizeOfInstructions' is flagged up by OTMaster as
> in need of fixing, e.g. the ttfautohint version of Ubuntu Font gives
> a size of 1013; that OTMaster autocorrects to 2636 to match the
> fpgm.

Interesting.  The specification just says

  maxSizeOfInstructions   Maximum byte count for glyph instructions.

And ttx, for example, doesn't take the size of the `fpgm' table into
account either.  Anyways, I've changed the code accordingly in the git
repository so that OTMaster doesn't complain :-)

> I tested the dummy font. It actually didn't render at all under
> DirectWrite (FFox5) !?, but did under GDI, see shot below;

Uh, oh, then let's forget that, please :-) Apparently, I've done a
mistake somewhere while reducing the font to a single glyph with less
SFNT tables.

Attached is a patch for tafpgm.c; please apply temporarily to make the
`fpgm' table four bytes longer.


    Werner


======================================================================


diff --git a/src/tafpgm.c b/src/tafpgm.c
index 1268e29..3874844 100644
--- a/src/tafpgm.c
+++ b/src/tafpgm.c
@@ -4298,6 +4298,11 @@ unsigned char FPGM(bci_hint_glyph) [] = {
 
   ENDF,
 
+  PUSHB_1,
+    100,
+  FDEF,
+  ENDF,
+
 };
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]