TrueType fonts are crapy in OpenOffice even if FreeType is compiled with bytecode interpreter. Reproducible: Always I patched the source code to avoid this. It is just a variable that is wrongly set and later used as parameter to FreeType functions.
Created attachment 111374 [details, diff] My own version of the offending file It is a file found in the OOO-2_0_4.tar.bz2 in vlc/source/glyph
(In reply to comment #0) > TrueType fonts are crapy in OpenOffice even if FreeType is compiled with > bytecode interpreter. > > Reproducible: Always > > > > > I patched the source code to avoid this. It is just a variable that is wrongly I forgot the version number: It is 2.0.4 > set and later used as parameter to FreeType functions. >
Uhm, could you please attach a unified diff instead of the whole file?
Created attachment 111433 [details, diff] OpenOffice FreeType Patch Here is the asked unified diff. I don't know if it is correct since I'm new to these tools. Note that the build system of OpenOffice has already a patch for that file. I modified the patched version, but I used the original file as the source for the diff command. I hope it would be usefull since it is a problem that seems to affect a lot of people.
Thanks.
May be a little explanation would be useful. The problem is with the way mnLoadFlags is set. Since OpenOffice doesn't use the fontconfig ( may be false in a future release ) library to retreive the system and users fonts settings, the best if I understand the FreeType API documentation is to set it to FT_LOAD_DEFAULT. This flag lets FreeType to use the native hinters ( The TrueType bytecode interpreter for example ) if available. It is not a perfect patch but for people using a BCI enabled FreeType, it is a quick workaround. A better patch would require a rewrite of vcl/source/gcach_ftyp.cxx
I guess this is most likely something for upstream. Did you try to file this bug at: http://qa.openoffice.org/issues/ ? Also: Did you check if this is still a valid problem for OOo 2.1.0?
I finaly managed to compile openoffice 2.1 and no fonts issue anymore on my configuration.
Happy to see a bug vanishing by itself, closing.