Mike Lorenz
|
photon font issues porting from QNX 4 to QNX 6
|
Mike Lorenz
02/20/2013 8:44 AM
post99374
|
photon font issues porting from QNX 4 to QNX 6
Hello!
I have some issues porting from QNX4 to QNX6.5x
I use selfmade .phf - fonts from QNX4 containing own symbols in it for a
small photon-application window running a terminal in it.
Changing the font using an escape sequence ( echo "\0033\"fphffontname\""
) causes the terminal to change the size of a terminal because of the
character size, but the text is invisible. changing back , eg. to pcterm14
works well (text is visible again).
The same happens to pterm windows.
I have done:
I put the *.phf in the /usr/photon/font_repository and using "mkfontdir -b
-d /usr/photon/font_repository" for creating new entries in fontdir file.
This works.
Watching all installed/registered fonts with a test program using
PfQueryFontsCx(...) shows up my fonts. But, looking to the properties of a
pterm window doesn't show the own fonts in the custom list.
One Difference, I figured out is that the preinstalled fonts
FontDetails.flags uses one more bitstring
our fonts flag is 0x11 (PHFONT_INFO_FIXED|PHFONT_INFO_PLAIN) ;
instead eg. pcterm14 is 0x111
(PHFONT_INFO_SANSERIF|PHFONT_INFO_FIXED|PHFONT_INFO_PLAIN)
Using "fontinfo -f fontfile.phf" also shows up one more attribute for the
preinstalled fonts: ( "[__PHF_P2_ATTR_][__PF_FIX_]" contrary to our fonts
: "[__PF_FIX_]" )
Rendering the fonts using "fontinfo -r ..." shows up all characters.
I guess there are some information missing in the header of the font
files.
Is there any documentation about the header or structure of phf - font
files ? I didn't found any in the forum or www .
Or is there a font editor ?
btw: the font from Mike Gorchak (
http://community.qnx.com/sf/discussion/do/listPosts/projects.graphics/discussion.photon_microgui.topc23114
) works well too.
Thanks in advance
Mike Lorenz
|
|
|