FTDI Community
General Category => Discussion - Software => Topic started by: jmribera on October 16, 2020, 10:55:59 am
-
Hi guys
Do you know what is the best way to print the degree symbol ( º ) an another special characters using FT813? I'm programming using Keil and stm32. I've tried to introduce the ascii code-176 but it doesn't work..
Thank you so much
JM
-
Hello,
One way is to create custom font characters with these special characters added.
When used individually, font characters are similar to bitmap images and can be displayed with a vertex command but if you want to use the characters within text strings of standard characters, you can also use the techniques shown in this draft application note below. It is built on the simple PIC framework from BRT_AN_008 but the same technique also works on other MCUs.
Here are the links to the draft document and the beta code,
BRT_AN_042_FT81x_Creating_font_with_special_characters%20DRAFT.pdf (ftp://u45902898-ide:Ftd1$erv@ftp.ftdichip.com/CES/Forum/BRT_AN_042_BETA/BRT_AN_042_FT81x_Creating_font_with_special_characters%20DRAFT.pdf)
BRT_AN_042_Source BETA.zip (ftp://u45902898-ide:Ftd1$erv@ftp.ftdichip.com/CES/Forum/BRT_AN_042_BETA/BRT_AN_042_Source%20BETA.zip)
Best Regards, FTDI Community
-
Well, or simply fake it as '°' is just a smaller 'o' at a different position.
EVE_cmd_text(GAUGE2_X, 60, 28, EVE_OPT_CENTERX, "[ C]");
EVE_cmd_text(GAUGE2_X-10, 57, 26, 0, "o");
And a 'µ' is just an 'u' plus an 'i'.
EVE_cmd_text(GAUGE1_X-29, 65, 28, 0, "i");
EVE_cmd_text(GAUGE1_X, 60, 28, EVE_OPT_CENTERX, "[um/m]");
https://github.com/RudolphRiedel/FT800-FT813
-
One way is to create custom font characters with these special characters added.
Best Regards, FTDI Community
Hi, thank you, I've created my custom font and it seems to work fine. :)
Do you know what is the "name" of the rom font 30 that is embedded by default in FT813? I want to add just few special characters and if the font is the same it will be better for my project.
Can I found this font in Windows ‘Fonts’ dialog in the control panel?
Thank you so much
JM