xxxxx@xxxxx.com 2004-09-02
Ricoh hg TT fonts have incorrect name table.
If attached FreeType2 sample program is invoked, family name
and style names are garbled.
===
face->family_name = ???????
face->style_name = ???
face->style = HG-GothicB-Sun
Hi osamu,
When I tried to compile sample.c file, I got the following error mesage.
---
bash-3.00# uname -a
SunOS cdetest35 5.11 snv_42 i86pc i386 i86pc
bash-3.00#
bash-3.00# id
uid=0(root) gid=0(root)
bash-3.00#
bash-3.00# pwd
/ava/bug/5095888
bash-3.00#
bash-3.00# ls -al
total 8
drwxrwxrwx 2 root root 512 Jun 22 16:38 .
drwxrwxrwx 5 root root 512 Jun 22 16:38 ..
-rwxrwxrwx 1 root root 1262 Jun 22 16:38 sample.c
bash-3.00#
bash-3.00# /usr/sfw/bin/gcc sample.c `freetype-config --cflags --libs`
bash: freetype-config: command not found
In file included from sample.c:5:
/usr/sfw/include/ft2build.h:56:38: freetype/config/ftheader.h: No such file or d
irectory
sample.c:6:10: #include expects "FILENAME" or <FILENAME>
sample.c:7:31: freetype/ftsnames.h: No such file or directory
sample.c: In function `look_ttf':
sample.c:21: error: `FT_Library' undeclared (first use in this function)
sample.c:21: error: (Each undeclared identifier is reported only once
sample.c:21: error: for each function it appears in.)
sample.c:21: error: syntax error before "ftLibrary"
sample.c:22: error: `FT_Face' undeclared (first use in this function)
sample.c:24: error: `ftLibrary' undeclared (first use in this function)
sample.c:26: error: `face' undeclared (first use in this function)
sample.c:32: error: `FT_UInt' undeclared (first use in this function)
sample.c:32: error: syntax error before "snamei"
sample.c:33: error: `FT_SfntName' undeclared (first use in this function)
sample.c:41: warning: assignment makes pointer from integer without a cast
bash-3.00#
---
Which gcc version do you use? I used the default one on snv build_42.
Thanks
--Ava