IDE app font formatting (1.8.12 Windows) just blew up

I've been copying sketches from the Arduino site and pasting them into sketches. Seemed to be going fine for quite a few. Then suddenly today - for no apparent reason - the font sizes in the sketches blew up. Lots of huge fonts mixed with smaller. It's all over the map. Strangely, the sketches compile, but the IDE is essentially unusable like this.


Lots of missing information Jim.

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
Other general help and troubleshooting advice can be found here.

No idea what causes this or how to solve the root cause.

What happens when you paste the copied content first in a normal editor (does it look normal in there?), next cut it from there and paste it in an empty sketch?

Everything works fine online. But with the Windows IDE, every sketch (including New) opens with gigantic fonts and no way to change it.

You can try the following; never used it.

In the IDE, file -> preferences.
Near the bottom is a link "C:\users...." under "More preferences can be directly edited in the file"
Click it and it will open Windows Explorer with the directory where preferences.txt is stored.
Close the IDE
Make a backup of the preferences.txt
Open preferences.txt in your favourite text editor.
Search for font
Mine is


Adjust font if it looks odd.
Save the file
Start the IDE and check.