freetype-devel
[Top][All Lists]
Advanced

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

RE: [ft-devel] CFF in OpenType is SID to CID mapping correct?


From: Boris Letocha
Subject: RE: [ft-devel] CFF in OpenType is SID to CID mapping correct?
Date: Wed, 29 Jul 2009 16:43:52 +0200

Hi,

I debug it and found problem that ftstring using gr_pixel_mode_gray mode, but 
this mode is not correctly supported in grwin32.c (in function 
gr_win32_surface_refresh_rectangle) it is always taken as RGB and because 
windows has BGR it swaps columns like in that picture.
If I modified ftstring.c to gr_pixel_mode_rgb32 it works (it is just in 
red/black because of display->fore_color.value = 0xff;)

So I attached implemented gr_pixel_mode_gray handling, with this source code 
original ftstring.c works correctly.

Also with make setup visualc. Make of ftdemos fails because there are warnings 
and warning are treated as errors (/WX parameter in visualc.mk). I just removed 
it, didn't tried to fix warnings, some of them are for example because of 
deprecated string functions which could be fixed in makefile with adding 
$(ANSIFLAGS) to $(CC).

Regards,

Boris Letocha

-----Original Message-----
From: Werner LEMBERG [mailto:address@hidden 
Sent: 28. Ĩervence 2009 22:44
To: Boris Letocha
Cc: address@hidden
Subject: Re: [ft-devel] CFF in OpenType is SID to CID mapping correct?


> Thanks in ftview it really works, my question is answered. Now we
> need to carefully study differences in code.
> 
> I attached screenshot of:
> ftstring.exe 120 arial.ttf

Hmm.  I've never seen those effects before.  Can you debug this?


    Werner

Attachment: grwin32.c
Description: grwin32.c


reply via email to

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