[sldev] UTF-8 open source fonts
Lawson English
lenglish5 at cox.net
Fri Aug 24 21:54:48 PDT 2007
I've been playing with llSetText and found that various characters that
display in my Mac's character input pallet don't display properly in
llSetText OR in chat/IM.
A little more research revealed that different people with clients on
different OS's or even the same OS show different subsets of chars.
The problem appears to be that the included ASCII fonts are supplemented
on-the-fly with whatever is available on the local OS, but whatever
algorithm is being used to choose those supplemental characters doesn't
always work.
Linden Labs should standardize on existing open source unicode fonts
such as those found here:
http://www.unifont.org/fontguide/
Time would be better spent deciding which open source fonts should be
distributed with SL, including the possibility of creating
llSetFont(font) and llSetTextSize(size) for llSetText's use, and base
any text-handling on THOSE fonts, rather than trying to perfect the code
to grab whatever fonts are available on the OS. At the very least,
having a standard distribution of multi-language fonts would make it
easier to cobble together unicode support on-the-fly and make any future
text-handling code easier to write and maintain since a known
multi-language set of fonts will always be available in any SL distribution.
More information about the SLDev
mailing list