Originally posted by: RUI
Hi all,
I am trying to use unicode TrueType fonts with aix 5.3 and also 4.3.3 but having little success with it.
I have the truetype fonts copied over from windows for testing and i generated the fonts.dir file on linux system and it has strings like below coming out in the xlsfonts output.
-monotype-arial-bold-r-normal--0-0-0-0-p-0-iso10646-1
-monotype-arial-medium-r-normal--0-0-0-0-p-0-iso10646-1
-monotype-courier new-bold-i-normal--0-0-0-0-m-0-iso10646-1
The command for adding the fonts was xset -display :0 fp+ /usr/uniq/truetypewinfonts
xset -display :0 fp rehash
Now when i try to load the fonts using XLoadQueryFont api of xlib, with parameter for pattern as -*-courier new-medium-r-*--7-53-*-*-*-*-iso10646-1. It loads -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO8859-1 instead which i don't want as i am trying to display different greek and cyrillic characters which are present in iso10646 based encoding.
Also i modified this file /usr/lpp/X11/defaults/TrueType/Xlfdcset based on
http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.aixwnpgd/doc/aixwnpgd/fontenhan.htm to add encoding iso10646-1 but still no use.
The entry added to this file was
iso10646-1 0x00 0xff 0x00 0xff 0xfffd
Can anybody help me out on how to display ucs2/utf16 characters on aix? I don't want Chinese japanese korean font support at the moment. Just eastern european, cyrillic, greek, turkish and baltic etc.
These steps work great on suse and redhat linux, i think there truetype rasterizer is able to handle it without any modification but aix is giving a bit of problem with the same steps. What could be the problem, do i need locale, new ttf fonts, some encoding file -- what am i missing?
Regards,
Raja