Skip to main content
JBonn
Associate III
Aug 13, 2025 9:30 PM UTC
Question

Stm32Cube IDE character spacing not consistent

Running STM32CubeIDE versions 1.18.1 and 1.19.0

i

static char *Audio3D[] = { // Main Settings display

"THERE ARE 15 VOLUME ",

IDE version 1.18.1 displays a 21 character line of code with the quotes one ontop of the other.

static char *Temp2D[] = {

" TEMPERATURE ",

" CELSIUS ",

" FAHRENHEIT "

};

 

IDE version 1.19.0 displays a 21 character line of code with the quotes not lined up

Makes it extremely hard to see if hundreds of lines of code are all 21 characters.

static char *Temp2D[] = {

" TEMPERATURE ",

" CELSIUS ",

" FAHRENHEIT "

};

 

This topic has been closed for replies.

4 replies

TDK
Aug 13, 2025 10:41 PM UTC

> quotes one ontop of the other.

> quotes not lined up

Maybe a screenshot would be more descriptive here, yes?

Check that the file is pure UTF-8 characters and encoding is set correctly. Font is monospaced, should display the file contents accurately.

"If you feel a post has answered your question, please click ""Accept as Solution""."
JBonn
JBonnAuthor
Associate III
Aug 15, 2025 12:58 PM UTC

Please tell me How to set encoding. How to make fonts be monospaced.

unsigned_char_array
Lead III
Aug 15, 2025 1:04 PM UTC

@JBonn wrote:

Please tell me How to set encoding. How to make fonts be monospaced.


Properties->Resource->Text File encoding (then set to UTF-8)

Preference->general->Appearance->Colors and Fonts->C/C++/Editor 

 

Please format your code in your posts: https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."