https://github.com/makerdiary/graphic_cjk_engine
https://github.com/makerdiary/graphic_cjk_engine
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/makerdiary/graphic_cjk_engine
- Owner: makerdiary
- Created: 2015-12-21T17:38:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-27T13:51:51.000Z (about 10 years ago)
- Last Synced: 2025-01-12T12:44:34.910Z (about 1 year ago)
- Language: C
- Size: 420 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.txt
Awesome Lists containing this project
README
This example sets a Chinese font file and shows a Chinese text.
It initiates the resource to Chinese by API vm_res_init(), then load the text data by API vm_res_get_string(), after that sets the font file path in the phone storage by API vm_graphic_set_font(), at last, draw the text by API vm_graphic_draw_text().
Before run this application, you need to put a Chinese font file to EXTERNAL_FONT_PATH and set the EXTERNAL_FONT_SIZE which can be calculated by CheckMemSize.exe tool.
Modify the macro SCREEN_WIDTH and SCREEN_HEIGHT to fit your display device.