Re: commit: List labels are UT_UCSChar's now.


Subject: Re: commit: List labels are UT_UCSChar's now.
From: Tomas Frydrych (tomas@frydrych.uklinux.net)
Date: Mon Feb 26 2001 - 04:19:18 CST


Hi Martin,

> So how do we fix Unix? I think the time has come to ship a genuine unicode
> font that contains characters in the range of UCS_BULLET and the various
> Dingbat font gluphs I've been using for "triangle" "square" "circle" etc.

Two comments: (1) the only unicode fonts I have been able to get
working are ttf. First of all, unicode pfa fonts are not easy to come
by, and second, the X server does not seem to be able to handle
them correctly (it sees only the first 256 chars). Now, I personally
am happy to use ttf fonts, but not everyone running AW under Unix
will have a ttf font server, so someone will first need to find out how
to get pfa unicode fonts to work under X.

(2) you can only really take advantage of unicode font under utf-8
locale; under a 8-bit locale you can only access the characters
that are contained in the locale charset -- you would need to
disable the remapping for the bullets and draw the bullets using the
same mechanism that the utf-8 locale uses (see
GR_UnixGraphics::drawChar), but loading a large Unicode font for
this might be an overkill.

Other possible solution would be to store internally the unicode
values, but carry out translation to the codepoint in our symbol and
dingbat fonts to draw these (which I think Vlad mentioned in one of
his recent emails). While I was initially very much in favour of
converting the symbols an bullets internally to unicode, I am
beginning to have doubts about it, for it does not seem to offer any
advantage (perhaps I am missing something), but would mean
plenty of work.

Tomas

*********************************************
tomas@frydrych.net / www.frydrych.net
PGP keys: http://www.frydrych.net/contact.html



This archive was generated by hypermail 2b25 : Mon Feb 26 2001 - 04:26:42 CST