Alexander Lange wrote: > if (densityCount < 2) > Error("FontFamily must have 2 fonts with density 72 and 144.");
So obviously it is not possible at the moment to create a font family with only a high-res member. Too bad. Maybe the Pilrc designers could rethink this in the future.
If you read the font family specification [1], I think you'll agree that it requires the family to contain a low-density font. Thus if there is any rethinking to be done, it really ought to be PalmSource issuing a clarification of this specification.
John
[1] http://www.palmos.com/dev/support/docs/palmos/Font.html#1000390
An extended font can contain any mix of 72/108/144dpi glyph bitmaps. Where the specification referenced by John says "Tables for the low-density font", it means the bitmap location table and the offset/width table, which have to be created with correct values for single-density glyph & character data, even if the font doesn't contain a single-density glyph bitmap.
The diagram in the documentation shows a typical extended font, which would have both single and double-density glyph bitmaps.
The reason most extended fonts have both single and double-density glyph bitmaps (even if they're found in a ROM on a double-density device) is that an app can still create and draw text in a single-density offscreen bitmap. The Palm OS 5 blitter can only up-sample (use single-density glyph data at double density), it can't down-sample.
-- Ken -- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
