[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] Porting ttmkfdir from freetype1 to freetype2
From: |
David Turner |
Subject: |
Re: [Freetype] Porting ttmkfdir from freetype1 to freetype2 |
Date: |
Mon, 03 Sep 2001 18:23:24 +0200 |
Hello Lev,
Lev Serebryakov a écrit :
>
> Hello freetype,
>
> I don't like to have freetype1 in my computer, so I'm trying to port
> ttmkfdir (program to build fonts.scale for X Window from *.TTF
> files).
>
> ttmkfdir need access to Panose information from TTF font (Face). In
> freetype panose (and all OS/2) information is stored in internal
> TT_Face structure.
>
> Is here way to get access to this structure, if I have FT_Face
> structure?
>
Yes, try something like:
#include FT_TRUETYPE_TABLES_H
{
TT_OS2* os2;
os2 = FT_Get_Sfnt_Table( face, ft_sfnt_os2 );
if ( os2 )
{
....
}
}
Cheers,
- David