FT_New_Face Error 1 makes it no further work

View: New views
3 Messages — Rating Filter:   Alert me  

FT_New_Face Error 1 makes it no further work

by Socrate M :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm working on a project in OpenGL on Windows and I use FreeType to load the fonts. It almost works every time but sometimes, when the application is loading many things, FT_New_Face returns 1 and then I can no further load fonts. So I can't reload them later when needed and I have to restart the application.
The only topic that I found talking about something like that is that one :http://old.nabble.com/PATCH%3A-Do-not-do-further-load-font-attempts-if-a-previous-attempt-has-failed-but-returned-error-FNT_Err_Invalid_File_Format-td11188324.html#a11188324

Thank you for your help, if you have any idea.

Sincerely,
Socrate

Re: FT_New_Face Error 1 makes it no further work

by Werner LEMBERG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I'm working on a project in OpenGL on Windows and I use FreeType to
> load the fonts. It almost works every time but sometimes, when the
> application is loading many things, FT_New_Face returns 1 and then I
> can no further load fonts. So I can't reload them later when needed
> and I have to restart the application.  The only topic that I found
> talking about something like that is that one :
>
>   http://old.nabble.com/PATCH%3A-Do-not-do-further-load-font-attempts-if-a-previous-attempt-has-failed-but-returned-error-FNT_Err_Invalid_File_Format-td11188324.html#a11188324

This patch has been applied two years ago.  Are you using the current
FreeType version, 2.3.11?

If the problem persists you have to find a way to reliably reproduce
the problematic behaviour.  You should finally construct a small C or
C++ program which we can further debug.


    Werner


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: FT_New_Face Error 1 makes it no further work

by Socrate M :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Werner LEMBERG wrote:
> I'm working on a project in OpenGL on Windows and I use FreeType to
> load the fonts. It almost works every time but sometimes, when the
> application is loading many things, FT_New_Face returns 1 and then I
> can no further load fonts. So I can't reload them later when needed
> and I have to restart the application.  The only topic that I found
> talking about something like that is that one :
>
>   http://old.nabble.com/PATCH%3A-Do-not-do-further-load-font-attempts-if-a-previous-attempt-has-failed-but-returned-error-FNT_Err_Invalid_File_Format-td11188324.html#a11188324

This patch has been applied two years ago.  Are you using the current
FreeType version, 2.3.11?

If the problem persists you have to find a way to reliably reproduce
the problematic behaviour.  You should finally construct a small C or
C++ program which we can further debug.


    Werner


_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel
Hello, you were right I didn't have the last version of FreeType but I still have the problem. With the debug version I could see that the file can really not be open. I'll try to find why sometimes "fopen" is not working. Thank you for your help.