FreeType 2.5.2 has been released

Arieh

Verified User
Joined
May 27, 2008
Messages
1,236
Location
The Netherlands
FreeType 2.5.2 has been released
CHANGES BETWEEN 2.5.1 and 2.5.2

I. IMPORTANT BUG FIXES

- Improving the display of some broken TrueType fonts introduced a
bug that made FreeType crash on some popular (but not fully
conformant) fonts like `ahronbd.ttf'.

- Another round of improvements to correct positioning and hinting
of composite glyphs in TrueType fonts.


II. MISCELLANEOUS

- Version 2.5.1 introduced a bug in handling embedded bitmap
strikes of TrueType fonts, causing garbage display under some
circumstances.

- The `ftgrid' demo program couldn't be compiled in
non-development builds.
 
So I built 2.5.2 and ./build versions shows I'm using 2.5.2 however after rebuilding PHP, PHP shows I'm still running 2.5.0.

Does this version require modifying versions.txt like 2.5.1 did?
 
Does this version require modifying versions.txt like 2.5.1 did?

No, it does not. Maybe your phpinfo page is cached if you run any special cache stuff on your server? Or maybe it is even cached in your browser?

I just upgraded to FreeType 2.5.2 in Custombuild 2.0 withouit any problems. What version does this command give you?:

Code:
php -i | grep -i freetype | grep -i version
 
Nope, nothing like that... I'm using CB 1.2:

./build versions | grep -i freetype; php -i | grep -i freetype | grep -i version
Latest version of FreeType: 2.5.2
Installed version of FreeType: 2.5.2
FreeType Version => 2.5.0

php -v
PHP 5.4.22 (cli) (built: Nov 20 2013 13:10:56)


^ hrmm... I just rebuilt php on all the boxes today with ./build php n... I wonder if it didn't actually recompile? Derp?
 
Had the same on FreeBSD 7.2 plus that I couldn't rebuild php 5.3.27 anymore after upgrading freetype.

Bailed on:

In file included from /usr/local/directadmin/custombuild/php-5.3.27/ext/gd/gd.c:82:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
/usr/local/directadmin/custombuild/php-5.3.27/ext/gd/gd.c:83:12: error: #include expects "FILENAME" or <FILENAME>

This is because /usr/local/include/ft2build.h refers to freetype/config/ftheader.h and should refer to freetype2/config/ftheader.h

Anyway, after adjusting the path in ft2build.h, running a ./build php d, it showed the correct 2.5.2 freetype version.
 
No need to modify anything (on my boxes at least). You just need to do a ./build php n after updating this freetype. It will show 2.5.2 after.

It has always been like that as far as I know.
 
Nothing special, it was a bug in FreeType 2.5.1 so John downgraded it in custombuild back to 2.5.0. Modification was only needed if you wanted to upgrade to 2.5.1 same time as 2.5.0 was the actual official version in custombuild. You could read about it in the 2.5.1 thread http://forum.directadmin.com/showthread.php?t=47795
 
Ohh ok so i did read about that, thot something suggested from Freetype developer inside php.ini or similar things :)

Thanks for the info

Regards
 
Had the same on FreeBSD 7.2 plus that I couldn't rebuild php 5.3.27 anymore after upgrading freetype.

Bailed on:

In file included from /usr/local/directadmin/custombuild/php-5.3.27/ext/gd/gd.c:82:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
/usr/local/directadmin/custombuild/php-5.3.27/ext/gd/gd.c:83:12: error: #include expects "FILENAME" or <FILENAME>

This is because /usr/local/include/ft2build.h refers to freetype/config/ftheader.h and should refer to freetype2/config/ftheader.h

Anyway, after adjusting the path in ft2build.h, running a ./build php d, it showed the correct 2.5.2 freetype version.

Does DA keep the compile log somewhere or is it just dumped to the terminal... I'm grep'ing for the error inside my custombuild folder currently
 
This is because /usr/local/include/ft2build.h refers to freetype/config/ftheader.h and should refer to freetype2/config/ftheader.h

Anyway, after adjusting the path in ft2build.h, running a ./build php d, it showed the correct 2.5.2 freetype version.

No dice on CentOS with the adjusted path even after compilation (I saw no errors)

php -v
PHP 5.4.22 (cli) (built: Nov 20 2013 12:59:31)

php -i | grep -i freetype | grep -i version
FreeType Version => 2.5.0
 
@scrupul0us, so it seems your problem is not related to freetype, but is that you are not able to recompile php correctly.

Maybe you have two php versions activated in options.conf? Maybe there is something wrong with that, so that only one of the php versions is recompiled? (the one that is not used ...)
 
Last edited:
@scrupul0us, so it seems your problem is not related to freetype, but is that you are not able to recompile php correctly.

Maybe you have two php versions activated in options.conf? Maybe there is something wrong with that, so that only one of the php versions is recompiled? (det one that is not used ...)

This is the related options.conf settings, same across all my servers:

Code:
cat options.conf | grep php | grep -v no
#PHP settings. default_php possible values - 4 or 5
default_php=5
php5_cgi=yes
php_ini=yes
php_ini_type=dist
phpmyadmin=yes
php5_ver=5.4
phpmyadmin_ver=4
 
Do you have the same probem on all servers, or only on one of them?
 
All of em it would appear... I was able to move from 5.4.17 to 5.4.22 without issue in November... seems like since then it hasn't compiled up

I wasn't able to find a log of the compiler output, I guess Ill have to > it to a text file and review it for issues.
 
Please post the output of these two commands:

Code:
/usr/local/php5/bin/phpize --version

Code:
/usr/local/bin/phpize --version
 
Code:
/usr/local/php5/bin/phpize --version
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

Code:
/usr/local/bin/phpize --version
-bash: /usr/local/bin/phpize: No such file or directory


Found this in my recompile log... never seen this before:
Code:
configure: WARNING: unrecognized options: --enable-force-cgi-redirect, --enable-fastcgi, --enable-magic-quotes
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: WARNING: unrecognized options: --enable-force-cgi-redirect, --enable-fastcgi, --enable-magic-quotes
 
Can you also post the output of this command?:

Code:
php-config --version
 
Also FWIW

Code:
php -v
PHP 5.4.22 (cli) (built: Nov 20 2013 12:59:31)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader v4.4.4, Copyright (c) 2002-2013, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
    with Suhosin v0.9.34-dev, Copyright (c) 2007-2012, by SektionEins GmbH
 
Back
Top