Font displayed differently in QNX 6.2 and QNX 4.25

Please help.

I am using phditto on a laptop to drive a large LCD screen from an
embedded application using QNX 4.25. QNX 4.25 doesn’t recognize any
PCMCIA cards in this laptop, so I loaded 6.2.

After copying over all of the files from the 4.25 system, running
mkfontdir and font_install and setting PHFONT_USE_EXTERNAL to 1, most of
the application looks correct. However, in this application one font is
used that is not on the system. helv20b is used. When text is displayed
using this font, it shows up too big.

Various other helv fonts exist (helv18?, helv14?, helv24?). I tried
mapping helv to swiss. I have tried copying helv18.phf to helv20b.phf.
After each try, I restarted. The font doesn’t change. I tried changing
the properties using fontadmin. Still no change.

Any suggestions on why this font looks wrong in phditto on a 6.2 system or
how to fix the problem will be very gratefully appreciated.

Regards,
Karen Lahey

Karen Lahey wrote:

Please help.

I am using phditto on a laptop to drive a large LCD screen from an
embedded application using QNX 4.25. QNX 4.25 doesn’t recognize any
PCMCIA cards in this laptop, so I loaded 6.2.

After copying over all of the files from the 4.25 system, running
mkfontdir and font_install and setting PHFONT_USE_EXTERNAL to 1, most of
the application looks correct. However, in this application one font is
used that is not on the system. helv20b is used. When text is displayed
using this font, it shows up too big.

Various other helv fonts exist (helv18?, helv14?, helv24?). I tried
mapping helv to swiss. I have tried copying helv18.phf to helv20b.phf.
After each try, I restarted. The font doesn’t change. I tried changing
the properties using fontadmin. Still no change.

Any suggestions on why this font looks wrong in phditto on a 6.2 system or
how to fix the problem will be very gratefully appreciated.

Regards,
Karen Lahey

take a look at this previous task:

http://www.openqnx.com/modules.php?op=modload&name=NewsPortal&file=article&id=3560&group=qdn.public.qnxrtp.photon

think it’s your case

http://www.openqnx.com/modules.php?op=modload&name=NewsPortal&file=article&id=3560&group=qdn.public.qnxrtp.photon

think it’s your case

Thanks.

This article suggests installing the legacy font package. How does one
install the legacy font package? I did install the 4.25 fonts (although
they don’t show up in the list in fontadmin). They are in
/usr/photon/font_repository. It is only the one font that is not in the
package, but used in the application, that doesn’t display correctly.

When I copy helv18b.pfr to helv20b.pfr, then mkfontdir and font_install,
why doesn’t it use my “helv20b” as the font? And why don’t all of the
legacy fonts show up in the list in fontadmin?

My task is to set up this display for shows. I don’t have the flexibility
to change the fonts used in the application.

Any ideas?

Thanks again.
Karen

Karen Lahey <karen@laheyfamily.org> wrote:

http://www.openqnx.com/modules.php?op=modload&name=NewsPortal&file=article&id=3560&group=qdn.public.qnxrtp.photon

think it’s your case

Thanks.

This article suggests installing the legacy font package. How does one
install the legacy font package? I did install the 4.25 fonts (although
they don’t show up in the list in fontadmin). They are in
/usr/photon/font_repository. It is only the one font that is not in the
package, but used in the application, that doesn’t display correctly.

When I copy helv18b.pfr to helv20b.pfr, then mkfontdir and font_install,
why doesn’t it use my “helv20b” as the font? And why don’t all of the
legacy fonts show up in the list in fontadmin?

They do not show up, because those are mappings, not installed
fonts. It is possible that fontadmin is weeding out any “legacy”
fonts. You can edit your ‘fontmap’ file directly. If you find
anything like this:

Helvetica = xxxx
helv = xxxx

You want to remove it. See documentation on phfont. Also, there
could be a mapping as followins:

helv *= xxxx

You could try removing it also. ‘swisss’ is the old legacy scalable
fonts that were used to supplement helv, swis721bts is the new one (bigger).
Again, it is better to install the legacy font package, since it has
override configuration file, which will eliminate any manual work on
your part.

My task is to set up this display for shows. I don’t have the flexibility
to change the fonts used in the application.

Any ideas?

Thanks again.
Karen

If you still have problems after trying the above, post the following (in text form):

ls -l /usr/photon/font_repository
fontdir
fontmap
fontext
/etc/system/config/font-traplist

Regards.