Debian Codegraph @

doc/sphinx/techref/palmfonts.rst

raw
1 Palm fonts
2 ==========
3
4 Fonts on the palm pilot are rather limited. Each strike is stored in its own
5 record of a database with no name or indication of whether it is connected to
6 any other font (ie. there is no concept of a family of fonts. Each strike is
7 alone).
8
9 On old palm pilots the font data structure stored a strike for a single screen
10 resolution. On newer pilots there is a different data structure which can store
11 multiple strikes for several screen resolutions (called "density" on the palm).
12
13 The new style font is unusable (causes crashes) on old palms. I am told that the
14 old style font causes crashes on new systems.
15
16 I'm told that at the moment new systems are all the same (high) density (so
17 there is currently no need for a multi-density font -- what is needed is a
18 single (high) density font in a multi-density wrapper).
19
20 I am told that to be portable an application currently needs to supply an old
21 style low-res font for old style palms, and a new-style font containing just a
22 high-res strike.
23
24 The palm OS reference documents the following densities:
25
26 * single
27 * one and a half
28 * double
29 * triple
30 * quadruple
31
32 I'm told that only single and double are actually used. FontForge does not
33 support the 1.5 density font.
34
35 If you want to generate an old-style (low-res) palm font you should specify a
36 single strike size in the Generate Font bitmap sizes field.
37
38 If you specify two or more strike sizes in the bitmap sizes field then all sizes
39 must be a small integer multiple (1,2,3,4) of the smallest strike. A dlg will
40 come up asking whether you want these strikes:
41
42 * All within a multi-density font
43 * All (except the smallest) within a multi-density font -- FontForge calls this a
44 high density font
45 * An old style low-res font containing the smallest strike in the first record of
46 the database file and a new style multi density font containing all strikes
47 within the second record of the generated file.
48 * An old style low-res font containing the smallest strike in the first record of
49 the database file and a new style multi density font containing all strikes
50 *except the smallest* within the second record of the generated file.
51
52 I believe the last format to be the most useful. This is the default, and is the
53 format used for the script Generate command.
54
55 Note: You must include the low-density strike. This strike defines the metrics
56 for all the others. However you may generate a font which does not include this
57 strike (the second choice in the list above).