Chinese Bitmap Font

I made a Chinese Bitmap fontfamily (phf) which consist of several fontfile
Chinese01 to Chinese10. I copy the files to the photon font directory and
make a font_install. After that I try to config the font with the
fontadmin-tool.

I miss the possibility to set up the font extension like documented for the
fontcfg-tool.


Please give me an advise to use Chinese bitmap (phf)-fonts.


Thanks

Liang Chen

Liang Chen <100103.2367@compuserve.com> wrote:

I made a Chinese Bitmap fontfamily (phf) which consist of several fontfile
Chinese01 to Chinese10. I copy the files to the photon font directory and
make a font_install. After that I try to config the font with the
fontadmin-tool.

I miss the possibility to set up the font extension like documented for the
fontcfg-tool.



Please give me an advise to use Chinese bitmap (phf)-fonts.



Thanks

Liang Chen

Run ‘fontadmin’, and under options, select “Strict International Support”.
Ensure you have the latest Rtp, otherwise the system will not restart
on reboot due to a parsing goof.

If the above problem does happen, you will have to edit
/usr/photon/font_repository/fontopt,
and remove the -I option (logged in as root). If you were not running
as root, remove the -I from $HOME/.ph/font/fontopt.

Ensure you used ‘bdftophf2’ to make your fonts, not bdf_2_phf (old).
With bdftophf2, one bitmap font can cover the entire unicode range,
and does not need to be cut into 64K pieces. When you said Chinese1
to Chinese10, I hope you are refering to point sizes, and not pieces.

You should rename to Chinese01, Chinese02, Chinese03 … Chinese10.
One last point, your bdf files MUST be in Unicode encoding.

If you have another Chinese font installed, and it has a larger Unicode
range, it will be used instead, unless you specifically pick “Chinese”
as the font to use in your application. You might benefit better by
using a Chinese truetype, especially one with embedded bitmaps.

Thank You.

Thanks for your hints… I have two questions about.

First, I use the QNX Free from the site get.qnx.com. The problem with the
non-starting photon happens so I think there must be a newer version on the
server. Where can I find it?

Second, I try to split the font in serveral parts, because I want to get a
small font which contains ASCII and Chinese Characters together. So my
question, is it possible to split the font in several parts in qnx rtp or do
I have to use only one great font ? Do you now any other way to get small
fonts and to save space?

Thanks for your help.
Liang Chen


<dleach@node318.org> schrieb im Newsbeitrag news:8vme3t$lum$1@inn.qnx.com

Liang Chen <> 100103.2367@compuserve.com> > wrote:
I made a Chinese Bitmap fontfamily (phf) which consist of several
fontfile
Chinese01 to Chinese10. I copy the files to the photon font directory
and
make a font_install. After that I try to config the font with the
fontadmin-tool.

I miss the possibility to set up the font extension like documented for
the
fontcfg-tool.


Please give me an advise to use Chinese bitmap (phf)-fonts.


Thanks

Liang Chen


Run ‘fontadmin’, and under options, select “Strict International Support”.
Ensure you have the latest Rtp, otherwise the system will not restart
on reboot due to a parsing goof.

If the above problem does happen, you will have to edit
/usr/photon/font_repository/fontopt,
and remove the -I option (logged in as root). If you were not running
as root, remove the -I from $HOME/.ph/font/fontopt.

Ensure you used ‘bdftophf2’ to make your fonts, not bdf_2_phf (old).
With bdftophf2, one bitmap font can cover the entire unicode range,
and does not need to be cut into 64K pieces. When you said Chinese1
to Chinese10, I hope you are refering to point sizes, and not pieces.

You should rename to Chinese01, Chinese02, Chinese03 … Chinese10.
One last point, your bdf files MUST be in Unicode encoding.

If you have another Chinese font installed, and it has a larger Unicode
range, it will be used instead, unless you specifically pick “Chinese”
as the font to use in your application. You might benefit better by
using a Chinese truetype, especially one with embedded bitmaps.

Thank You.

Liang Chen <100103.2367@compuserve.com> wrote:

Thanks for your hints… I have two questions about.

First, I use the QNX Free from the site get.qnx.com. The problem with the
non-starting photon happens so I think there must be a newer version on the
server. Where can I find it?

I must apologize. Double checking, I realized that the patch is not
yet released. When it is, soon hopefully, this problem will be
addressed. As you well know, sometimes the development cycle is
far ahead of the release cycle.

Second, I try to split the font in serveral parts, because I want to get a
small font which contains ASCII and Chinese Characters together. So my
question, is it possible to split the font in several parts in qnx rtp or do
I have to use only one great font ? Do you now any other way to get small
fonts and to save space?

A Chinese font can have ASCII and Oriental symbols. Remember, we are
dealing with Unicode encoding. Chinese symbols do not occupy the same
unicode range as ASCII symbols. Splitting fonts into parts may net
a very small decrease in size, but the overall performance degradation
would be more of an issue.

I recommend using one large font for the sake of rendering speed.
You might have to increase the bitmap cache size to something near
200K. The default is 60K (-c option). You can edit the fontopt
file directly, and add -c200K on a new line.

Are you developing a product? If so, maybe you can describe it,
and I can make some recommendations. When time permits, I will
review this thread again.

Thank You.

Thanks for your help.
Liang Chen