I think your warning is a byproduct of fonts being enumerated.
A couple of things you could try: Define your Font at fntAppFontCustomBase
+ x Also you could type your font ID as #define MyFont ((FontID)(x))
The second method worked for me.
Dave
-----Original Message-----
From: Danko Radic <[EMAIL PROTECTED]>
To: 3com Palm Pilot Developers Forum <[EMAIL PROTECTED]>
Date: Friday, May 28, 1999 7:56 AM
Subject: Annoying warning concerning custom fontID
>(CW R4 (win), PalmPilot SDK 3.0)
>When compiling my application that installs custom font, I'm getting this
>warning (although it all compiles and works fine):
>
>
>-----------------------------------------------------------
> Warning : illegal implicit enum conversion from 'int' to
> 'fontID'
> MyApp.c line 576 FntDefineFont(myFont,fontP);
> -
>-----------------------------------------------------------
>
>
>when compiling this (only relevant excerpt):
>
>
>-----------------------------------------------------------
> #define myFont 129
>
> fontH=DmGetResource('Font',100);
> if (fontH!=NULL)
> {
> fontP=MemHandleLock(fontH);
> FntDefineFont(myFont,fontP); //<<<<<<<WARNING!!!!!!!
> }
>-----------------------------------------------------------
>
>
>since parameters for FntDefineFont(FontID font, FontPtr fontP) are defined
>in Font.h as:
>
>-------------------------------------------------
>enum fontID
> //not allowed to copy this but there are font names definitions
>};
>
>typedef enum fontID FontID;
>
>extern Err FntDefineFont (FontID font, FontPtr fontP) ...sys trap etc...
>-----------------------------------------------------
>
>(custom font ID should be >128).
>
>
>How should I define 'myFont' ID to avoid that warning (except changing
>Font.h file)?
>
>
>
>PS.
>BTW, I have to say this: I had several questions about new font
>installation here and directed to Palm, and NO Palm people ever gave any
>answer or hint or reference. I thought it was real darkness in first,
>although it wasn't. I don't understand why did they write to 'contact
>Palm' for info near FntDefineFont function description in manual. The only
>people that actually helped were Bozidar Benc and Constantine Klyatskin
>from this group. Thanks guys!
>
>
>