[N9H20 Non-OS] How to use UTF-8 encoding?

Post Reply
9chuckyoung
Posts: 93
Joined: 28 Jan 2019, 13:49

20 Nov 2020, 15:51

Platform: N9H20K5
Platform resource link: https://www.nuvoton.com/hq/products/app ... _locale=en
BSP link: https://github.com/OpenNuvoton/N9H20_emWin_NonOS
Sample code brief: Utilize emWin FreeType library to draw different size font with UTF-8 encoding
IDE: Keil professional

Note: Please donwload emWin FreeType library from https://www.segger.com/downloads/emwin/emWin_FreeType
Note: Copy test.ttf to NAND1-1
Note: Nuvoton will not provide ttf font file
Note: Make sure this test.ttf has target character set or you will see the blanks
Note:
TTF support for emWin can be
achieved by using the FreeType font library from David Turner, Robert Wilhelm and Werner
Lemberg which is not part of emWin. An adapted version of this library ready to use with
emWin is available on our website https://www.segger.com/downloads/emwin/emWin_FreeType. That library can be added to emWin in order to use the
TTF-API

Licensing
The use of FreeType font library is subject to a BSD style license with credit clause
(freetype.org https://www.freetype.org/license.html) also included in GUI\TrueType\FTL.txt of the zip file. The original version
of the library is available for free under freetype.org https://www.freetype.org/.
Attachments
SimpleDemo_TTF_UTF8.zip
Use FreeType with UTF-8 encoding to display string on 480x272 LCD
(1.28 MiB) Downloaded 879 times

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests