Paul Dean | 7 Jun 2012 15:55
Picon
Favicon

[ft] Freetype FT_Request_Size() crashes

I've compiled freetype 2.4  and any time I try to use FT_Set_Char_Size() it will crash in the ftobjs.c file in the FT_Request_Size() function at this line


error = clazz->request_size( face->size, req );    //line 2832

I have mixed results on different systems, but all systems show a weak point when trying to set a font size.


Windows - Works Great! - Only if I use /Za "Disable Language Extensions" in VisualC++, it works fine. :)

Mac - Works Great - only when i'm in xcode / debug...    Crashes when run directly from app file....     Only crashes when I try to set font size.

IPhone/IPad - Works Great - on the simulator, don't know how it will act on an actual IPhone  /IPad yet.

Android - Does Not Work! - crashes when I try to set font size.


My next step is to make sure that the font file is being opened ok on every system. And I know they are.

How can I check that?

What else do I need to check?

Can freetype even change the working directory?


I think I'm either missing something small in the compile, or I'm stuck.

I would provide code, but it does not matter.  All I gotta do is use FT_Set_Char_Size() to crash it.

Any Ideas would be of great help.   Thanks guys



Paul Dean

I.T. Professional
714-631-6285
Paul <at> PDComputerTech.com
aquawicket <at> hotmail.com

http://digitalknob.googlecode.com

_______________________________________________
Freetype mailing list
Freetype <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype
Werner LEMBERG | 7 Jun 2012 21:14
Picon

Re: [ft] Freetype FT_Request_Size() crashes


> I've compiled freetype 2.4 and any time I try to use
> FT_Set_Char_Size() it will crash in the ftobjs.c file in the
> FT_Request_Size() function at this line
>
>   error = clazz->request_size( face->size, req );    //line 2832
>
> I have mixed results on different systems, but all systems show a
> weak point when trying to set a font size.

Please post a minimal example, even if you think it doesn't matter.
Are you using the latest version 2.4.9?

> All I gotta do is use FT_Set_Char_Size() to crash it.  Any Ideas
> would be of great help.

What about the demo programs?  Can you execute, say, ftdiff?

    Werner

Gmane