Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

can anybody tell me how to use IFONT_GetFontInfo(IFont * pIFont, AEEFontInfo * pinfo, int nSize)[/I].i want to collect the height of the font which is loaded onto resource.

Quick response is deeply welcomed.

Usage to get the height:
AEEFontInfo pinfo;
int16 nHeight;
if(SUCCESS == IFONT_GetInfo(pIFont, &pinfo, sizeof(AEEFontInfo)))
{
nHeight = pinfo.nAscent + pinfo.nDescent;

Note that pIFont should be a valid IFont instance.
On the other hand you can also use IDISPLAY_GetFontMetrics to get the font height.
-Karthik

Usage to get the height:
AEEFontInfo pinfo;
int16 nHeight;
if(SUCCESS == IFONT_GetInfo(pIFont, &pinfo, sizeof(AEEFontInfo)))
{
nHeight = pinfo.nAscent + pinfo.nDescent;

Note that pIFont should be a valid IFont instance.
On the other hand you can also use IDISPLAY_GetFontMetrics to get the font height.
-Karthik

Hi karthik,
Thank u very much for ur help.
but i have noticed that IFont_GetInfo(); is not supported in brew sdk v 2.0.1
so Could u resolve it again.
Regards,
Abdul

Hi karthik,
Thank u very much for ur help.
but i have noticed that IFont_GetInfo(); is not supported in brew sdk v 2.0.1
so Could u resolve it again.
Regards,
Abdul

Well, you can still use IDISPLAY_GetFontMetrics to get the font height.
-Karthik

Well, you can still use IDISPLAY_GetFontMetrics to get the font height.
-Karthik