When i set patch = 12061, it displays "FreeType2 version 2.4.12061" and not set patch, it displays "FreeType2 version 2.4.9"
Johnson Y. Yan 发件人: suzuki toshiya 发送时间: 2012-06-13 17:51:14 收件人: Johnson Y. Yan 抄送: freetype-devel 主题: Re: [ft-devel] PDF text rendering error Just I've updated the patch making FT_Library_Version() return the irregular values. Please invoke FT_Library_Version() and print its result to stdout or stderr, to assure that your binary is linked with the patched library. Insertion something like { FT_Int maj, min, pat; FT_Library_Version( library, &maj, &min, &pat); fprintf( stderr, "FreeType2 version %d:%d:%d\n", maj, min, pat ); } will give "FreeType2 version 2.4.12061". Regards, mpsuzuki suzuki toshiya wrote: > Johnson Y. Yan wrote: >> *sure* that you are linking to the right, patched >> FreeType library? >> -------see the render (gid = 2134) result saved as png image. > > I think what Werner asked is "could you check if your binary is > linked with the patched library, not with the unpatched libary?". > > Unfortunately, "yes, I've checked" is NOT objective answer. > The solution would be... hmm, I will update the patch that changes > the version returned by FT_Library_Version() function. So please > update your testing program to invoke the function and show the > version. > > Regards, > mpsuzuki > > P.S. >> Are you really writing code without indentation? >> -------It depends on freetype, > > I don't think FreeType2 requests you to write a code without > indentation. I'm interested in if it is a inhouse convention > of the engineers in Foxit Software. > > Johnson Y. Yan wrote: >> Werner , >> Are you really writing code without indentation? >> -------It depends on freetype, >> Any reason why you don't use the symbolic value, FT_LOAD_NO_BITMAP? >> -------FT_LOAD_NO_BITMAP == 8 >> *sure* that you are linking to the right, patched >> FreeType library? >> -------see the render (gid = 2134) result saved as png image. >> >> I think the important thing is that it calls freetype's interface, and >> there is a result. >> Thanks. >> Johnson Y. Yan >> >> >> >> 发件人: Werner LEMBERG >> 发送时间: 2012-06-13 16:25:34 >> 收件人: yinsen_yan >> 抄送: mpsuzuki; freetype-devel >> 主题: Re: [ft-devel] PDF text rendering error >> >> ... Are you really writing code without indentation? >>> #include "../../ft2.4.9/include/freetype/internal/ftobjs.h" >> Uh, oh! You must never, ever use an internal header file in your >> source code (except for special reasons). >>> int load_flags = 8; >> Any reason why you don't use the symbolic value, FT_LOAD_NO_BITMAP? >> Besides this, I don't see a problem with your code (after a quick >> look). Are you *sure* that you are linking to the right, patched >> FreeType library? >> Werner > > > _______________________________________________ > Freetype-devel mailing list > Freetype-devel@nongnu.org > https://lists.nongnu.org/mailman/listinfo/freetype-devel
freetype.PNG
Description: Binary data
_______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel