cancel
Showing results for 
Search instead for 
Did you mean: 

binary font configuration is globle?

shark
Senior

I use some ascii fonts and one chinese unicode font in my project. After I checked "binary font files" in designer v4.13, all fonts are generated as bin files.It is inconvienense to load all fonts at run time, and it even show nothing in simulater.

So, are there a way to specify some fonts are generated in c code, some others are in bin format.

3 REPLIES 3
shark
Senior

I have patched binary font to the system. However, the binary font look incorrect as following picture:

0690X00000D8ijIQAR.png

void screenMainView::testClick()

{

Unicode::fromUTF8((const uint8_t*)"0123456789abcdefg一�?丂七丄丅丆万丈三上下丌�?与�?", 

 this->textAreaTestBuffer, TEXTAREATEST_SIZE);

this->textAreaTest.invalidate();

}

It looks like the odd unicode can not get correct font data. or the data in font bin file is not correct.

I use designer 4.13, hope someone can help me.

thanks.

shark
Senior

After debug for some time, I found It is fault of my hardware board configuration. The font table access is not 4 byte aligned. It's ok after I enabled sdram's cache function.

Thank you for your problem solving record.