As the title says - the need is to make a custom Japanese font, just for
with smaller characters then the std one in the CLIEs.

The ideal case will be to be able to install it in the device and activate
it with FntSetFont() and use it like a custom font on a Latin based device.

The worst scenario will be total custom drawing, which considered that the
whole app is a total custom drawing is not that bad. But if the overhead can
be avoided, I'd gladly do so.

A little help in the structure of the main font if the hiearchy and how is a
sub-font accessed, at least?

Unfortunately there's no reliable way to use FntDefineFont to define a Japanese (ie hierarchical) font. The problem is that sub-fonts are referenced from the top-level font (which is actually a font map) via absolute subfont indexes. So the correct index to use depends on what's been previously installed by the OS.


Which means your most compatible approach is to define your own set of "sub-fonts", where you parse the text and select the appropriate sub-font to use using the high byte of the double-byte character, and then you draw the low byte. This does mean that you'll have to manage dynamically installing the required sub-font(s) yourself.

-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to