Dear all, I've written a program which hacks the WinDrawChars for the Hi-Res Machines. I now test on Sony CLie N710C. In my WinDrawChars, i want to get the font size of the characters going to be printed.
First I try to use HRFntGetFont() to get the font ID. But it always returns 0 - 7. i.e. For the font ID should be >= 8 it minus 7. Say, it returns 7, instead of 15, for the HrLargeBoldFont when printing text in MemoPad (i use SysSetTrap to hack WinDrawChars() with myWinDrawChar() ) I also try FntGetFont(), but the result of FntGetFont() is always equal to HRFntGetFont(), in ANY text of ANY built-in applications. Then i try to use FntGetFontPtr()->fRectHeight. For the HrLargeBoldFont it also returns 15, which is the height for hrSmallBoldFont, instead of 24. Thus now i can't distinguish the small fonts (ID from 0 to 7) or the big fonts (ID from 8 to 15). Would anyone pls help me?? Edmund -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
