How the font managed in BREW | developer.brewmp.com How the font managed in BREW | developer.brewmp.com

Developer

How the font managed in BREW

Forums:

hi,

I do not know how the font works in BREW. Because i am new to this
I want to know basics of the font in BREW and how it is manged by brew.

Please any body can give me idea regarding the font management in BREW

The BREW System using IFont Interface to Draw Text/Chars internal. Actually, It is used by IDisplay_DrawText.
The important concept is, two type font: Logical Font & Physical Font.
The Logical Font is as :
// Logical font type
enum {
AEE_FONT_NORMAL=0x8000,
AEE_FONT_BOLD,
AEE_FONT_LARGE,
AEE_FONT_ITALIC,
AEE_FONT_BOLD_ITALIC,
AEE_FONT_LARGE_ITALIC,
AEE_FONT_NORMAL_SCH,
AEE_FONT_USER_1,
AEE_FONT_USER_2,
AEE_FONT_TOTAL
;
The Phisical Font is The detail implemented IFont Interface
For, IDisplay, It will associate one logical font type with one phisical font instance. And When you Call IDisplay_DrawText, passed the logical font type, IDisplay inside will using the associated IFont instance to draw chars, such as IFONT_DrawText.
Now, I give the basic flow for BREW Font management:
When BREW Init, BREW will create some system Font instance(physical Font) with such as AEECLSID_FONTSYSNORMAL,AEECLSID_FONTSYSLARGE,AEECLSID_FONTSYSBOLD, And Call IDISPLAY_SetFont to associate them with logical font type: AEE_FONT_NORMAL,AEE_FONT_LARGE,AEE_FONT_BOLD
Then, When App Call IDISPLAY_DrawText, and passed logical font type, BREW will using the related IFont instance to draw chars.
If App want to change the default physical font, Then, Developer can implement their own IFont Interface. Create this IFont instance in run-time, Then Call IDisplay_SetFont, Passed this IFont Instance and the logical font type which you want to associated, assume, AEE_FONT_BOLD . OK, from now on, When you using IDisplay_Drawtext with AEE_FONT_BOLD , BREW will use your own IFont instance to draw the text.
Hope can help you

The BREW System using IFont Interface to Draw Text/Chars internal. Actually, It is used by IDisplay_DrawText.
The important concept is, two type font: Logical Font & Physical Font.
The Logical Font is as :
// Logical font type
enum {
AEE_FONT_NORMAL=0x8000,
AEE_FONT_BOLD,
AEE_FONT_LARGE,
AEE_FONT_ITALIC,
AEE_FONT_BOLD_ITALIC,
AEE_FONT_LARGE_ITALIC,
AEE_FONT_NORMAL_SCH,
AEE_FONT_USER_1,
AEE_FONT_USER_2,
AEE_FONT_TOTAL
;
The Phisical Font is The detail implemented IFont Interface
For, IDisplay, It will associate one logical font type with one phisical font instance. And When you Call IDisplay_DrawText, passed the logical font type, IDisplay inside will using the associated IFont instance to draw chars, such as IFONT_DrawText.
Now, I give the basic flow for BREW Font management:
When BREW Init, BREW will create some system Font instance(physical Font) with such as AEECLSID_FONTSYSNORMAL,AEECLSID_FONTSYSLARGE,AEECLSID_FONTSYSBOLD, And Call IDISPLAY_SetFont to associate them with logical font type: AEE_FONT_NORMAL,AEE_FONT_LARGE,AEE_FONT_BOLD
Then, When App Call IDISPLAY_DrawText, and passed logical font type, BREW will using the related IFont instance to draw chars.
If App want to change the default physical font, Then, Developer can implement their own IFont Interface. Create this IFont instance in run-time, Then Call IDisplay_SetFont, Passed this IFont Instance and the logical font type which you want to associated, assume, AEE_FONT_BOLD . OK, from now on, When you using IDisplay_Drawtext with AEE_FONT_BOLD , BREW will use your own IFont instance to draw the text.
Hope can help you

hi nicefuture,
so some basic idea i got.
I have some more doubts:
i heard that for characters display bmp files will provide the characters .
so how the bmp files relates to these fonts.
and i got one document that "Brew font extension" i tried to get knowledge from that but that says bbf and ttf and some qcsans. I read but i did not get.
So can you please clear these doubts.
how the BMP files realtes to font and what is the qcsans and bbf and ttf.

hi nicefuture,
so some basic idea i got.
I have some more doubts:
i heard that for characters display bmp files will provide the characters .
so how the bmp files relates to these fonts.
and i got one document that "Brew font extension" i tried to get knowledge from that but that says bbf and ttf and some qcsans. I read but i did not get.
So can you please clear these doubts.
how the BMP files realtes to font and what is the qcsans and bbf and ttf.

That is just about how to implement the IFont Interface.
Qualcomm Give the BBF solution to implement the IFont.

That is just about how to implement the IFont Interface.
Qualcomm Give the BBF solution to implement the IFont.

Hi Nicefuture,
can you please explain me or can you give me an idea about BBF and TTF and QCSANS.?

Hi Nicefuture,
can you please explain me or can you give me an idea about BBF and TTF and QCSANS.?