Sun Java Runtimes
Here, font mappings are defined in a font.properties
file that resides in the
lib
subdirectory of the runtime's install directory.
Adding Fonts to the
Java Runtime at Sun explains the details of this file for their 1.1.x runtimes, on Solaris
and Windows OS. The same format also applies to Sun's PersonalJava runtime
environment for Windows CE, and seems to have been adopted by other vendors' runtimes as
well.
Insignia Jeode on Sharp SL-5x00
If anyone has found that after all there is a way to set font mappings, please let me know!
To counter this, you can specify font mappings in Babbletower's properties file. Note that this is only provided for use with the above mentioned runtime. It has only been tested there so far, on an SL-5500. It will most likely not work at all on any other runtime!. Only one real font can be mapped to each virtual font.
Assuming a font called unifont
is installed, the following would map all virtual font names
to this font, for the device key zaurus
:
zaurus.font.Serif = unifont zaurus.font.SansSerif = unifont zaurus.font.Dialog = unifont zaurus.font.DialogInput = unifont zaurus.font.Monospaced = unifont
{device key}.font.{setting name} = {font name}, {style}, {size}Babbletower currently recognizes these setting names:
setting name | default value | description |
---|---|---|
default |
SansSerif, plain, 10 |
default font |
menus |
SansSerif, plain, 11 |
font for all menus |
wblist.stats |
Monospaced, plain, 10 |
font for wordbox list when showing statistics |
wblist.nostats |
SansSerif, plain, 12 |
font for wordbox list without statistics |
card.verybig |
SansSerif, plain, 18 |
largest font for flash cards, used by heading field |
card.big |
SansSerif, plain, 14 |
large font for flash cards, used by reading and translation fields |
card.small |
SansSerif, plain, 10 |
small font for flash cards, used by explanation and remark fields |
card.kanji |
SansSerif, plain, 42 |
extra large font for flash cards, used for Kanji display |
dictio.field |
SansSerif, plain, 14 |
font for the lookup field in the dictionary screen |
dictio.history |
SansSerif, plain, 12 |
font for the history list in the dictionary screen |
dictio.page |
SansSerif, plain, 14 |
font for lookup result screen ("dictionary page") in the dictionary screen |
lupe |
SansSerif, plain, 48 |
font for the lupe |
zoom |
none | Globally scale font size settings. Specify this value in percent. E.g.:
The first setting increases all font sizes by 30% for device key |
Remarks:
font name
- In Java 1 runtimes, only the logical names of virtual fonts can be used (see above).
In Java 2 runtimes, font face names may work, but there's no guarantee (simply try).
style
- Combinations of plain
, bold
, and italic
can be used.*
for the values to keep.
zaurus.font.default = SansSerif, bold italic, 14 zaurus.font.dictio.page = *, *, 12 zaurus.font.dictio.field = Unifont, *, 12