Danko Radic wrote:
> When compiling my application that installs custom font, I'm getting 
> [a] warning (although it all compiles and works fine)
> when compiling this (only relevant excerpt):
> 
>   #define myFont                       129
>   FntDefineFont(myFont,fontP);       //<<<<<<<WARNING!!!!!!!
>
> How should I define 'myFont' ID to avoid that warning?

Try this (example expanded to show multiple fonts) :

  #define myFont0 (( FontID )( fntAppFontCustomBase + 0 ))
  #define myFont1 (( FontID )( fntAppFontCustomBase + 1 ))
  #define myFont2 (( FontID )( fntAppFontCustomBase + 2 ))

Or in C++ you can use the cleaner type cast syntax:

  #define myFont0 FontID( fntAppFontCustomBase + 0 )

> (except changing Font.h file)?

Here is my team's coding standard regarding modifying the system header
files: never ever ever ever ever ever ever do that.

-slj-

Reply via email to