[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
TrueType PCLT support Re: Status report on FreeType 2
From: |
Yamano-uchi, Hidetoshi |
Subject: |
TrueType PCLT support Re: Status report on FreeType 2 |
Date: |
Sun, 07 May 2000 17:46:23 +0900 |
Hello,
From: David Turner <address@hidden>
Subject: Status report on FreeType 2
Date: Wed, 03 May 2000 12:18:21 +0200
Message-ID: <address@hidden>
> - it is now possible to access some TrueType tables like
> "head", "OS/2", "maxp", "hhea", etc... See "include/tttables.h"
> to see how to do it
I wrote stuff to acess a TT Open table "pclt" now.
We can obtain this table via FT_Get_Sfnt_Table.
I have some questions about sfnt tables.
* In order to use multilingual face names (french, spanish, Japanese,
etc.), I used TT_Face directory in my bogus codes as follow,
foo(FT_Face* face) {
TT_Face aface;
aface = (TT_Face)*face;
}
It works well on gcc, but is it allowed on another compiler like
CodeWarriors?
* Nowadays, the version of sfnt is fixed integer, 0x0001000.
I don't think the version will be updated in near future, but
Microsoft update some sfnt tables version (e.g. "os2") frequently :-P
There are no API obtaing the sfnt version, I think it is
natural to provide the API. David, do you think about it?
* On binary compatibility:
The glibc2 on Linux often breaks binary compatibility.
On the other hand, NetBSD uses __RENAME macro when some structures
change for binary compatibility.
--- in /usr/include/errno.h
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
!defined(_XOPEN_SOURCE)
extern __const int sys_nerr __RENAME(__sys_nerr14);
extern __const char *__const *sys_errlist __RENAME(__sys_errlist14);
#endif
---
--- in /usr/include/sys/cdefs.h ---
#ifdef __GNUC__
#define __RENAME(x) __asm__(___STRING(_C_LABEL(x)))
#else
#ifdef __lint__
#define __RENAME(x) __symbolrename(x)
#else
#error "No function renaming possible"
#endif /* __lint__ */
----
But, it is a good solution only for gcc and gas.
It is better launching some binary compatibility features in
FreeType2. Is there any good solutions about it?
############################################################################
Yamano-uchi, Hidetoshi
address@hidden
######## La musique souvent me prend comme une mer! ########################