nanogui: Asian Fonts In Nano-X


Previous by date: 26 Oct 2005 01:34:55 +0100 Re: URGENT! really need help running nano-X on ARM, Greg Haerr
Next by date: 26 Oct 2005 01:34:55 +0100 Ftp server, Takács Áron
Previous in thread: 26 Oct 2005 01:34:55 +0100 Re: Asian Fonts In Nano-X, Gil Glass
Next in thread: 26 Oct 2005 01:34:55 +0100 Re: Asian Fonts In Nano-X, Gil Glass

Subject: Re: [nanogui] Re: Asian Fonts In Nano-X
From: "Greg Haerr" ####@####.####
Date: 26 Oct 2005 01:34:55 +0100
Message-Id: <00e501c5d9c2$ed448260$7001a8c0@censoft.com>

> Excellent!  Thanks for the reply, Greg.  Using the HZXFONT setting, I have
> been able to display some Chinese characters!  Of course, I have no idea
> what they are.  :-)

Well, except that I was trying to say that these options,
including HZxxFONT, are obsolete, and chinese .bdf files
should be used instead.  There are all sorts of strange,
antiquated behaviours with these older font subdrivers.


> 1.  What is the difference between the HZXFONT and the HZKFONT?  When I
> used HZK, I didn't get any characters although I probably guessed wrong on
> the Unicode values.

I'm not sure ;-)  I don't think either supports unicode input format,
though.
These were contributed very very early before unicode support,
and are builtin fonts only.



>
> 2.  Are the Chinese and other Asian fonts scalable?  If not, what are the
> available sizes.  Based on the filenames, it looks like there is a 12
> pitch and a 16 pitch available.  The 16 pitch fonts are the ones being
> loaded right now.  How do I select?  I've tried using
> GrSetFontSize(fontId, 12) and GrSetFontSize(fontId, 16) but the result is
> the same for each.

No, these aren't scalable.  Any freetype asian font would be though.
Only one size can be compiled in at a time.  Suggest you switch
to .pcf, .fnt, or .ttf format.


>
> 3.  Is the alignment different for the Chinese fonts as for the Latin
> fonts?  In my current implementation, I do some drawing of cursors and
> selection bars that's based on the baseline returned by GrGetGCTextSize().
>  I use the default alignment of "baseline" in GrText().  For a 16 pitch
> Latin font, the baseline returned is 3.  For the Chinese font, it is 14.

The alignment is probably screwed up for these older fonts.
They do have an ASCII portion however.

Regards,

Greg


Previous by date: 26 Oct 2005 01:34:55 +0100 Re: URGENT! really need help running nano-X on ARM, Greg Haerr
Next by date: 26 Oct 2005 01:34:55 +0100 Ftp server, Takács Áron
Previous in thread: 26 Oct 2005 01:34:55 +0100 Re: Asian Fonts In Nano-X, Gil Glass
Next in thread: 26 Oct 2005 01:34:55 +0100 Re: Asian Fonts In Nano-X, Gil Glass


Powered by ezmlm-browse 0.20.