Re: [ft] Auto-hint license in "The FreeType 2 FAQ"

2006-07-28 Thread Werner LEMBERG

> I think the "The FreeType 2 FAQ" needs some attention:
> http://freetype.sourceforge.net/freetype2/docs/ft2faq.html#autohint

Indeed.  I've completely updated it.  Please check.


Werner


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


[ft] detecting font format from ft_face

2006-07-28 Thread Tor Andersson

Hi!

I am updating my MuPDF PDF viewer to use freetype 2.2 and I have hit a snag.
Because of the way PDF treats encodings, I need to know the format of a
loaded font face.

Previously I have used the following hack to switch on the driver used:

enum { UNKNOWN, TYPE1, CFF, TRUETYPE, CID };

static int ftkind(FT_Face face)
{
const char *kind = face->driver->clazz->root.module_name;
if (!strcmp(kind, "type1"))
return TYPE1;
if (!strcmp(kind, "cff"))
return CFF;
if (!strcmp(kind, "truetype"))
return TRUETYPE;
if (!strcmp(kind, "t1cid"))
return CID;
return UNKNOWN;
}

How do I achieve the same results without using the internal header files?

Tor


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


Re: [ft] Line spacing

2006-07-28 Thread Werner LEMBERG

> I checked out cvs freetype2, but the freetype2/docs subdirectories
> are empty.

???  Can you verify this, please.  I currently don't have CVS access.
Note that you won't find step2.html there -- this isn't in a CVS.


Werner


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


Re: [ft] Line spacing

2006-07-28 Thread Russell Shaw

Werner LEMBERG wrote:

I've read the FAQ and tutorials, and found that "text_height" is
defined in: 3. Global glyph metrics at
 http://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html

However, it doesn't seem to be in FT_FaceRec.

What field do i use for line-line spacing? (rather than just 
max(char_height))


I know now.


Please submit a patch to step2.html which I can apply!


Hi,
I checked out cvs freetype2, but the freetype2/docs subdirectories
are empty.


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype