php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3219 GDTTF error
Submitted: 2000-01-15 15:37 UTC Modified: 2001-08-30 11:02 UTC
From: chris at brenden dot com Assigned: markonen (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Beta 3 OS: Redhat Linux 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris at brenden dot com
New email:
PHP Version: OS:

 

 [2000-01-15 15:37 UTC] chris at brenden dot com
php4b3 with gd-1.7.3 and freetype2

gdttf.c:76: parse error before `TT_Engine'
gdttf.c:76: warning: no semicolon at end of struct or union
gdttf.c:77: warning: data definition has no type or storage class
gdttf.c:78: parse error before `properties'
gdttf.c:78: warning: data definition has no type or storage class
gdttf.c:79: parse error before `instance'
gdttf.c:79: warning: data definition has no type or storage class
gdttf.c:80: parse error before `char_map'
gdttf.c:80: warning: data definition has no type or storage class
gdttf.c:81: parse error before `matrix'
gdttf.c:81: warning: data definition has no type or storage class
gdttf.c:82: parse error before `imetrics'
gdttf.c:82: warning: data definition has no type or storage class
gdttf.c:84: parse error before `}'
gdttf.c:84: warning: data definition has no type or storage class
gdttf.c:90: parse error before `TT_Engine'
gdttf.c:90: warning: no semicolon at end of struct or union
gdttf.c:91: warning: data definition has no type or storage class
gdttf.c:96: parse error before `TT_Glyph'
gdttf.c:96: warning: no semicolon at end of struct or union
gdttf.c:97: warning: data definition has no type or storage class
gdttf.c:98: parse error before `outline'
gdttf.c:99: parse error before `oldx'
gdttf.c:99: warning: data definition has no type or storage class
gdttf.c:100: parse error before `Bit'
gdttf.c:100: warning: data definition has no type or storage class
gdttf.c:104: parse error before `}'
gdttf.c:104: warning: data definition has no type or storage class
gdttf.c:110: parse error before `font_t'
gdttf.c:110: warning: no semicolon at end of struct or union
gdttf.c:111: warning: data definition has no type or storage class
gdttf.c:122: parse error before `glyph_t'
gdttf.c:122: warning: no semicolon at end of struct or union
gdttf.c:123: warning: data definition has no type or storage class
gdttf.c:151: parse error before `font_t'
gdttf.c:169: warning: static declaration for `gdImageColorResolve' follows non-static
gdttf.c: In function `fontTest':
gdttf.c:369: `a' undeclared (first use in this function)
gdttf.c:369: (Each undeclared identifier is reported only once
gdttf.c:369: for each function it appears in.)
gdttf.c:369: parse error before `)'
gdttf.c:370: `b' undeclared (first use in this function)
gdttf.c:370: parse error before `)'
gdttf.c: In function `fontFetch':
gdttf.c:380: `TT_Error' undeclared (first use in this function)
gdttf.c:380: parse error before `err'
gdttf.c:381: `a' undeclared (first use in this function)
gdttf.c:382: `b' undeclared (first use in this function)
gdttf.c:382: parse error before `)'
gdttf.c:386: parse error before `)'
gdttf.c:394: `err' undeclared (first use in this function)
gdttf.c:398: `TT_Err_Could_Not_Open_File' undeclared (first use in this function)
gdttf.c:421: `TT_F26Dot6' undeclared (first use in this function)
gdttf.c:429: `n' undeclared (first use in this function)
gdttf.c:431: `i' undeclared (first use in this function)
gdttf.c:432: `platform' undeclared (first use in this function)
gdttf.c:432: `encoding' undeclared (first use in this function)
gdttf.c:446: `TT_Fixed' undeclared (first use in this function)
gdttf.c: In function `fontRelease':
gdttf.c:460: `a' undeclared (first use in this function)
gdttf.c:460: parse error before `)'
gdttf.c: In function `glyphTest':
gdttf.c:475: `a' undeclared (first use in this function)
gdttf.c:475: parse error before `)'
gdttf.c:476: `b' undeclared (first use in this function)
gdttf.c:476: parse error before `)'
gdttf.c: In function `glyphFetch':
gdttf.c:486: `a' undeclared (first use in this function)
gdttf.c:487: `b' undeclared (first use in this function)
gdttf.c:487: parse error before `)'
gdttf.c:493: parse error before `)'
gdttf.c:505: `flags' undeclared (first use in this function)
gdttf.c:505: `TTLOAD_SCALE_GLYPH' undeclared (first use in this function)
gdttf.c:507: `TTLOAD_HINT_GLYPH' undeclared (first use in this function)
gdttf.c:509: `glyph_code' undeclared (first use in this function)
gdttf.c:510: `err' undeclared (first use in this function)
gdttf.c:527: `cos_a' undeclared (first use in this function)
gdttf.c:528: `sin_a' undeclared (first use in this function)
gdttf.c:529: `crect' undeclared (first use in this function)
gdttf.c:545: `TT_Flow_Up' undeclared (first use in this function)
gdttf.c: In function `glyphRelease':
gdttf.c:565: `a' undeclared (first use in this function)
gdttf.c:565: parse error before `)'
gdttf.c: In function `bitmapTest':
gdttf.c:579: `b' undeclared (first use in this function)
gdttf.c:579: parse error before `)'
gdttf.c: In function `bitmapFetch':
gdttf.c:592: `b' undeclared (first use in this function)
gdttf.c:592: parse error before `)'
gdttf.c: At top level:
gdttf.c:677: parse error before `font_t'
gdttf.c: In function `gdttfchar': 
gdttf.c:690: `glyph' undeclared (first use in this function)
gdttf.c:691: `glyphkey_t' undeclared (first use in this function)
gdttf.c:691: parse error before `glyphkey'
gdttf.c:692: `bitmapkey_t' undeclared (first use in this function)
gdttf.c:704: `next' undeclared (first use in this function)
gdttf.c:707: `glyphkey' undeclared (first use in this function)
gdttf.c:710: `font' undeclared (first use in this function)
gdttf.c:710: `fg' undeclared (first use in this function)
gdttf.c:712: parse error before `)'
gdttf.c:716: `bbox' undeclared (first use in this function)
gdttf.c:717: `advance' undeclared (first use in this function)
gdttf.c:720: `im' undeclared (first use in this function)
gdttf.c:724: `bitmapkey' undeclared (first use in this function)
gdttf.c:724: `x1' undeclared (first use in this function)
gdttf.c:725: invalid operands to binary &
gdttf.c:730: `x' undeclared (first use in this function)
gdttf.c:731: `y' undeclared (first use in this function)
gdttf.c:731: invalid operands to binary &
gdttf.c:732: `tweencolorkey' undeclared (first use in this function)
gdttf.c:760: `tweencolor' undeclared (first use in this function)
gdttf.c: In function `gdttf':
gdttf.c:776: `TT_F26Dot6' undeclared (first use in this function)
gdttf.c:776: parse error before `ur_x'
gdttf.c:778: `TT_BBox' undeclared (first use in this function)  
gdttf.c:779: parse error before `double'
gdttf.c:781: `font' undeclared (first use in this function)
gdttf.c:782: `fontkey_t' undeclared (first use in this function)
gdttf.c:782: parse error before `fontkey'
gdttf.c:789: `fontCache' undeclared (first use in this function)
gdttf.c:790: `engine' undeclared (first use in this function)
gdttf.c:799: `fontkey' undeclared (first use in this function)
gdttf.c:803: parse error before `)'
gdttf.c:807: `sin_a' undeclared (first use in this function)
gdttf.c:808: `cos_a' undeclared (first use in this function)
gdttf.c:809: `advance_x' undeclared (first use in this function)
gdttf.c:809: `advance_y' undeclared (first use in this function)
gdttf.c:811: `next' undeclared (first use in this function)
gdttf.c:813: `ch' undeclared (first use in this function)
gdttf.c:829: `x1' undeclared (first use in this function)
gdttf.c:832: `error' undeclared (first use in this function)
gdttf.c:832: `advance' undeclared (first use in this function)
gdttf.c:835: `i' undeclared (first use in this function)
gdttf.c:836: `ll_x' undeclared (first use in this function)
gdttf.c:837: `ll_y' undeclared (first use in this function)
gdttf.c:838: `ur_x' undeclared (first use in this function)
gdttf.c:839: `ur_y' undeclared (first use in this function)
make[3]: *** [gdttf.lo] Error 1
make[3]: Leaving directory `/php4install/php-4.0b3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/php4install/php-4.0b3/ext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/php4install/php-4.0b3'
make: *** [all-recursive-am] Error 2 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-19 12:32 UTC] markonen at cvs dot php dot net
There are known problems with using FreeType 2 with PHP4 at this time. As a workaround, you can revert to FreeType 1.3 or rename FreeType 2's truetype.h header file to freetype.h and libfreetype.a to libttf.a.
 [2000-02-23 14:25 UTC] sas at cvs dot php dot net
Open -> Analyzed
 [2000-07-29 15:18 UTC] waldschrott@php.net
what?s the progress here?
 [2000-10-13 21:42 UTC] sniper@php.net
I put this on suspend. Freetype2 is still beta. 
(although they claim having RC on their site..) 

--Jani
 [2000-10-14 15:49 UTC] markonen@php.net
The latest status is that the FreeType 2 API has freezed 
and development work is now possible. The new API is 
a significant improvement overt the old 1.x API and 
being able to utilize its features in PHP would be great. 
However, it is also significantly different, and supporting 
it would constitute a complete rewrite of the TTF code.

The new FreeType version includes a new rasterizer 
which is capable of producing either 1-bit or 8-bit 
(256-shade) type. The latter is *very* visually pleasing, 
but does not really fit into our current 8-bit imaging 
backend (gd).

Based on these developments, I don't see a need to 
hack FreeType 2 support into the current gd-based 
architecture. I see it as a part of a more complete 
imaging overhaul. I reclassify this as a Feature/Change 
Request -- the FreeType 2 distribution contains 
instructions on how to work with FreeType 1.x host 
apps (like PHP).
 [2001-08-30 11:02 UTC] sander@php.net
AFAIK, FreeType is far out of beta, and is working great with PHP4. Closed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 15:01:31 2025 UTC