freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Pb with PHP/MAMP


From: Christian Roy
Subject: Re: [ft-devel] Pb with PHP/MAMP
Date: Thu, 17 Sep 2009 10:36:00 +0200

Hi,

Thank for your message. Please find following additional info.

Regards.

Le 16 sept. 2009 à 17:45, address@hidden a écrit :


Hi,

Yet I have no intel Mac, so I cannot try to reproduce
the trouble you got - and I'm really unfamiliar with
PHP and MAMP...

On Wed, 16 Sep 2009 14:51:15 +0200
Christian Roy <address@hidden> wrote:
I am developing a hieroglyph editor (Mac SnowLeopard)

Sounds interesting! Which script you're working for?
I am not sure to understand your question. Currently hieros are nor recognised by Unicode standard so we use code points arbitrarily chosen event not in private plane.
For further detail you may refer to http://projetrosette.info switching to english (look at top right).
Is it the answer to your question ?

and encountered a pb after migration to MAMP
(freetype 2.3.9) environment.

I'm not sure if you're asking about freetype specific issue,
or the incompatibility between raw PHP versus MAMP package.
Please describe what you used before MAMP (and got expected
result).
I was using MacOSX Leopard. PHP provided by Appel not including freetype I rebuilt GD library including freetype 2.3.5 (http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz)
For a given test hiero, imagettfbbox was returning for top -54 and +13 for bottom. 

My pb is that imagettfbbox does not return same values than before  
migration for hieroglyphic characters coming from a home made ttf font.

Hmm. imagettfbbox is a part of PHP - so, you find the
incompatible values between that in raw PHP (built by
yourself, or by Apple) versus that in MAMP?
If possible, could you check whether the version of
freetype is changed before/after the migration?
With MAMP free type version is 2..9 and image ttfbbox for the same test hiero than above returns -67 (top) and -1 (bottom). Height is the same but the glyph is shift to the bottom.

As an example, looking at the vertical dimension :  height is OK but  
returned bottom and height are different (13 and -54 before, -1 and  
-67 after migration).

Please upload any TTF to reproduce the problem somewhere.
A ttf file with a single hiero (Unicode point U+0000) is at 
Corresponding rendered glyph is at http://test.projetrosette.info/temp.png
However, freetype developer will check the metric returned
by freetype is same with your expect /or not, but may not
check the metric returned by PHP/MAMP. In fact, I have no
access to Snow Leopard machine yet, and the report by other
machines, other binaries (e.g. PHP running on GNU/Linux)
would not what you want.
I understanf this point.

Regards,
mpsuzuki



reply via email to

[Prev in Thread] Current Thread [Next in Thread]