How to extend emWin library font?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to extend emWin library font?

980件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by harper on Sat Oct 26 08:43:29 MST 2013
The emWin library comes with small text fonts. These could be magnified to 32 pixels but this would give a worse appearance as the digital fonts can give. The digital fonts include only the characters '0' ..' 9' '+' '-' '.'

Since the digial font GUI_FontD32 doesn't provide all but one character I think it would be worth to extend this font. I just need one additonal character '/'.

I was able to create the appropriate GUI_FONT_PROP_EXT structure that holds the information for the additional character. I realized that the GUI_FONT member pPropExt must point to a sorted linked list of GUI_FONT_PROP_EXT elements. I've built a sorted list and got my new character included. The problem is that I get a scrambled pattern. Even the dump of the existing character bitmaps appears as unrelated to the pixels drawn to screen.

What is the way to add a character to a library font (where no C file is available)?
ラベル(1)
0 件の賞賛
返信
0 返答(返信)