From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) Description of problem: ttmkfdir can't produce font.dir correctly with CJK fonts in ttfonts-ja ttfonts-ko. It may seems to me a ttmkfdir2 have some bug. I make a patch againt ttmkfdir2, It work correctly for me now. -------------8X-------------------- --- ttmkfdir2/encoding.l Thu Jan 13 07:17:46 2000 +++ ttmkfdir2.my/encoding.l Thu Sep 27 18:36:32 2001 @@ -62,7 +62,7 @@ i2 = std::strtol (startptr, &endptr, 0); - cur_enc->size = (startptr == endptr) ? i1 : (i1 << 8) + i2; + cur_enc->size = (startptr == endptr) ? i1 - 1: (i1 - 1 << 8) + i2; } <INSIDE_ENC_BLOCK>STARTMAPPING{WHITESPACES}unicode { --------------------- 8X----------------- And I have also found some encoding map bug "gbk-0.enc" in XFree86-4.x.x if you change the UNDIFINE section like following - UNDIFINE 0 0xFFFF + UNDIFINE 0 0xFEFE working correctly with above patched ttmkfdir. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.cp /usr/share/fonts/ko/TrueType/gulim.ttf . 2.ttmkfdir font.dir have incorrect information. ! ttmkfdir will not working with CJK fonts. Additional info:
*** This bug has been marked as a duplicate of 54087 ***