Date: 01/14/99
- Next message: Rasmus Lerdorf: "[PHP-DEV] Chili!Soft Empowers Apache and O'Reilly Web Servers With ASP (fwd)"
- Previous message: musone: "[PHP-DEV] CVS update: php3/doc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
This is a little patch to enable the use of Macintosh
fonts with the GD/TTF stuff and to make the non-antialiased
output proper and neat.
It works nicely on my machine, but I know so little C
that I'm a little afraid here :)
I hope someone has the time to check it out and commit it
to the tree soon, so I can be in sync again :-)
Thanks a lot,
Marko
Index: ChangeLog
===================================================================
RCS file: /repository/php3/ChangeLog,v
retrieving revision 1.554
diff -d -r1.554 ChangeLog
3a4,5
> - Improvements in FreeType support: Macintosh fonts work, and non-antialiased
> output is considerably cleaner. <mka <email protected>>
Index: functions/gdttf.c
===================================================================
RCS file: /repository/php3/functions/gdttf.c,v
retrieving revision 1.18
diff -d -r1.18 gdttf.c
95a96
> int gray_render;
416c417,418
< (platform == 0 && encoding == 0)) {
---
> (platform == 2 && encoding == 1) ||
> (platform == 0)) {
460c462,463
< && a->hinting == b->hinting);
---
> && a->hinting == b->hinting
> && a->gray_render == b->gray_render);
476c479
< a->gray_render = (b->font->ptsize < MINANTIALIASPTSIZE)?FALSE:TRUE;
---
> a->gray_render = b->gray_render;
688a692,693
> /* if fg is specified by a negative color idx, then don't antialias */
> glyphkey.gray_render = ((font->ptsize < MINANTIALIASPTSIZE) || (fg <0))?FALSE:TRUE;
787d791
<
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: Rasmus Lerdorf: "[PHP-DEV] Chili!Soft Empowers Apache and O'Reilly Web Servers With ASP (fwd)"
- Previous message: musone: "[PHP-DEV] CVS update: php3/doc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

