From d3249d93aef66449d2dd2d2a779df98bda4ac9f3 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 8 Jul 2005 03:10:21 +0000 Subject: [PATCH] Moving glyph-measuring code to drawing --- xwords4/palm/palmmain.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/xwords4/palm/palmmain.h b/xwords4/palm/palmmain.h index bdb07b946..401c1e9ca 100644 --- a/xwords4/palm/palmmain.h +++ b/xwords4/palm/palmmain.h @@ -56,6 +56,16 @@ typedef struct PalmAppGlobals PalmAppGlobals; typedef XP_UCHAR* (*GetResStringFunc)( PalmAppGlobals* globals, XP_U16 strID ); + +#ifdef TALL_FONTS +typedef struct { + XP_S16 topOffset; /* how many pixels from the top of the + drawing area is the first pixel set in + the glyph */ + XP_U16 height; /* How many rows tall is the image? */ +} PalmFontHtInfo; +#endif + typedef struct PalmDrawCtx { DrawCtxVTable* vtable; PalmAppGlobals* globals; @@ -82,7 +92,7 @@ typedef struct PalmDrawCtx { #ifdef TALL_FONTS XP_LangCode fontLangCode; - XP_FontBounds* fontLangInfo; + PalmFontHtInfo* fontHtInfo; #endif union {