cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32Cube IDE character spacing not consistent

JBonn
Associate III

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 "

};

 

4 REPLIES 4
TDK
Super User

> 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
Associate III

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


@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.

They're monospaced by default. If you have weird characters, that's the problem. Impossible to know what's going on here as you didn't really provide enough detail.

If you feel a post has answered your question, please click "Accept as Solution".