GDI32: Using the FT_Sfnt_Name for font FamilyName

Byeong-Sik Jeon wjsqudtlr at gmail.com
Sun Mar 12 13:10:36 CST 2006


ChangeLog:
Using the FT_Sfnt_Name for font FamilyName



By way of example:

Korean MS-Windows default font are Gulim.ttc and Batang.ttc. it is each
SanSerif, Serif font.

Gulim.ttc include four font. its english name is "Gulim, GulimChe,
Dotum, DotumChe".

and its korean name is 
"굴림, 굴림체, 돋움, 돋움체".
(\xad74\xb9bc, \xad74\xb9bc\xccb4, \xb3cb\xc6c0, \xb3cb\xc6c0\xccb4).

This patch makes that Wine can be use these korean font name. and Wine
can be use the english name still. therefore, we have no need to change
the font configuration.

I added three new function. and I was redefine FontSubst structure.

get_familyname_from_sfnt_name()
font_subst_list_get_font_subst()
font_subst_list_add_font_subst()


Like the MS-Windows, Korean font name saved in the registry.
and hidden(not appear .reg file) FontSubst informatain("Gulim"="\xad74
\xb9bc", ...) be present in the memory.


http://debianusers.org/wiki/pds/freetype.c_using_FT_Sfnt_name_MSWord.png

http://debianusers.org/wiki/pds/freetype.c_using_FT_Sfnt_name_Korean.png


Following image is regedit in the Japanese locale. Note that font
name...
http://debianusers.org/wiki/pds/freetype.c_using_FT_Sfnt_name_Japanese.png


PS1:
Equality thing can realize with following method:
---------------------------------------------------------------------- 
[Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts] 1142186819
"Gulim (TrueType)"="Gulim.ttc"
"\xad74\xb9bc (TrueType)"="Gulim.ttc"
....
-----------------------------------------------------------------------
It is simple. but it is different to MS-Windows.
And, in my Korean MS-Word, this method makes any strange problem.
so, I was redefine FontSubst structure.

PS2:
My old patch "[1/5] ttc support in the init_system_links() function"
have to modify. If this patch committted, I'll modify it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freetype.c_using_FT_Sfnt_name.diff
Type: text/x-patch
Size: 13607 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060313/a5bbde3e/freetype.c_using_FT_Sfnt_name-0001.diff


More information about the wine-patches mailing list