Bug#683078: l10n UI unreadable at all (can't load international font)

IRIE Shinsuke irieshinsuke at yahoo.co.jp
Sat Jul 28 13:42:13 UTC 2012


Package: blender
Version: 2.63a-1

When starting Blender, I get many annoying warnings as follows:

Can't load font: default from memory!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!
Warning: Can't found default font!!

And indeed UI is not displayed with "Droid Sans Regular" font.
Especially, if I attempt to use UI translated into Japanese,
all Japanese characters appear as unreadable blank squares.

I investigated 0009-look_for_droid_ttf_with_fontconfig.patch
and found that BLI_file_to_mem() in fileops.c doesn't work.
fread() in this function returns 0 or 1, not actual readsize,
so the font file cannot be read to memory area properly.

To fix this bug,

  readsize= fread(mem+size, chunk_size,1,file);

has to be modified as follows:

  readsize= fread(mem+size, 1, chunk_size, file);

-- IRIE Shinsuke



More information about the pkg-multimedia-maintainers mailing list