OpenSolaris

Printable Version Enter a New Search
Bug ID 5095888
Synopsis libfreetype/libfontconfig should access name table with using UCS2/UTF-16BE
State 10-Fix Delivered (Fix available in build)
Category:Subcategory xserver:font
Keywords
Responsible Engineer Jay Hobson
Reported Against s10_66
Duplicate Of
Introduced In
Commit to Fix snv_43
Fixed In snv_43
Release Fixed solaris_nevada(snv_43) , solaris_10u6(s10u6_01) (Bug ID:2168560)
Related Bugs
Submit Date 2-September-2004
Last Update Date 16-January-2007
Description
 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
Work Around
N/A
Comments
N/A