I'm trying to do it the other way around (converting small palm fonts to 
windows fonts). I didn't find the time to continue yet but these tools may be 
also helpful for you.

Have a look at PalmFontConv and PalmFOntCollector. 
http://sourceforge.net/projects/palmfontconv/

With Palm font collecor you can read fonts from your Palm (use the Emulator) 
and copy selected fonts into a pdb. Then you can use PoseDBExport or anything 
similar to copy this font pdb from the Emulator to the PC. 
In the next step use "extractfonts Fonts.prc" from the palmfontconv package to 
extract the fonts into a text representation. 

You then get .txt text file for each font and resolution of the font. Have a 
look at the headers, there is information for the resolution etc. 

I think it should be pretty simple if you take the .txt files of a font that 
has already low and high density bitmap representations (the .txtfiles) size 
you want and then go from there. 

This is what a 'k' looks for example in this text file as bitmap representation.

// WIDTH 6 (OFFSET 0, DELTA 6)
GLYPH 'k'
------
------
##----
##----
##-##-
####--
####--
##-##-
##--##
------
------


I was too lazy to do that by hand. It should be simple to write a little tool 
to do some "pixel doubling" and changing the header info of the .txt files. 

Finally you can convert this text fonts into a Palm font again. Good luck ;-)

Regards
Benjamin Stadin


Frantisek Dufka wrote:

> Hello,
>
> standard fonts are too big for some things. I searched the forum and found 
> that it is indeed very hard to just reuse the low density fonts on high 
> density display to have tiny font usable in standard palmos widgets (like 
> Field). I also found links to TinyFonts example in KB. I see that the 
> proposed solution is to give up and create new fonts and bundle it with 
> application. This solution causes problems with localization. Those tiny 
> fonts are of course english only. Is there some way to create those tiny font 
> resources dynamically from the low density fonts currently installed (and 
> localized) on device?
>
> Is it about some clever database copying an modifying few density bits or are 
> those fonts stored in different way so it is not so easy? Any tips or working 
> code? Thanks.
>
> Frantisek
>


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

Reply via email to