[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] Font type and Type 1 tables
From: |
David Turner |
Subject: |
Re: [Freetype] Font type and Type 1 tables |
Date: |
Wed, 17 Apr 2002 14:55:07 +0200 |
Salut J.,
Juliusz Chroboczek a écrit :
>
> In the FreeType 2 backend, I need to distinguish between Type 1 and
> TrueType fonts (I sometimes use glyph names for Type 1 fonts, but
> never for TTFs), and to access a Type 1 font's /FontInfo dictionary.
>
> I'm currently using the following:
>
> #define FACE_TYPE(FACE) ((FACE)->driver->clazz->root.module_name)
> #define T1INFO(FACE) \
> (strcasecmp(FACE_TYPE(FACE), "type1") == 0 ?\
> (&((T1_FaceRec*)FACE)->type1.font_info) : \
> NULL)
>
> Knowing David's and Werner's love of harmony and order, I cannot help
> but conclude that I've missed something.
>
Simply put it, an application should never try to access the font
engine's internal structures (since these are bound to change
between releases).
I cannot make any guarantee that the above code will work in
2.1.x or 2.2.x
On the other hand, if you need to access some internal data,
you'd better ask for a specific API on the devel list. There
are chances we'll hear you and provide you with something
useful..
Another way is to provide a patch that implements the new
API you want. Don't be surprised if we happen to modify it
slightly (e.g. Keith Packard's original FT_Get_Next_Char
has been quite modified), but this will greatly speed its
acceptance, and we will continue to support it in later
releases..
So, what do you need to access exactly ? What is it for ?
Regards,
- David Turner
- The FreeType Project