Bridgetek / pico-brteve

Example code and utility to make Raspberry Pi/Raspberry Pi Pico work with Eve GPU from BridgeTek. https://brtchip.com/eve/
MIT License
8 stars 5 forks source link

bigger font eve_cocmd_text #23

Closed qombajn closed 2 years ago

qombajn commented 2 years ago

Is it possible to add bigger font in basic? Maximum is 31 and i need like 4 times bigger and 2-3 times bigger

brtchip-paul-jiao commented 2 years ago

BT81x has bigger font , such as 32,33,34. You need call cmd_romfont to assign them to a valid font handle. See the example below:

image

brtchip-paul-jiao commented 2 years ago

image

brtchip-paul-jiao commented 2 years ago

If you want bigger than Font 34, you need use the custom font. Check the font converter of Eve Asset Builder for more details.

qombajn commented 2 years ago

Ok, but I am using basic in C examples in my project for raspberry pico and there is no cmd_romfont function and i don't know what i have to import to do it. I wanted to call that but it doesn't compile becouse i need some library or something.

qombajn commented 2 years ago

And I'm using 480x272.

qombajn commented 2 years ago

Could you explain me is it possible to use bigger font than 34, using raspberry pico? Becouse i understand that using windows you flash memory and then you have acces to this bigger fonts that you exported to eve. Is it possible with pico? Maybe 34 will be enough but i need little help how i discribed above

brtchip-tuannguyen commented 2 years ago

Hi qombajn, font size bigger than 34 can be done by using cmd_setfont2, please refer to Font.c, function SAMAPP_Font_indexer().

Below is a screenshot: image

You can try build and run C example code Font on RP2040, the instruction here: https://github.com/BRTSG-FOSS/EveApps/#raspberry-pi-pico

qombajn commented 2 years ago

I have build that but my project is based on basic example and there, in font example everything is different. I just need function romfont in basic example not remake project on font-example

qombajn commented 2 years ago

Can I change 16,17,18 to 32,33,34 in example-basic??

qombajn commented 2 years ago

Ok I did it: You have to send: eve_cocmd_ddd(CMD_ROMFONT,font,romfont) font and romfont are uint32_t