FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: Degree symbol  (Read 206 times)

jmribera

  • Newbie
  • *
  • Posts: 2
    • View Profile
Degree symbol
« 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
« Last Edit: October 16, 2020, 12:15:41 PM by jmribera »
Logged

FTDI Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 484
    • View Profile
Re: Degree symbol
« Reply #1 on: October 20, 2020, 03:28:17 PM »

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

BRT_AN_042_Source BETA.zip


Best Regards, FTDI Community





Logged

Rudolph

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Degree symbol
« Reply #2 on: October 26, 2020, 05:12:36 PM »

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
Logged

jmribera

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Degree symbol
« Reply #3 on: October 27, 2020, 04:45:57 PM »


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

 
Logged