Editor 2 css change script font size

Hi every one :wave:!

I just downloaded Defold, and I am trying to increase the default font size of the editor.
I create the file:
~/.defold/editor.css
And added the next piece of code and reloaded the stylesheet:

.root {
-fx-font-size: 25px;
}

.styled-text-area {
-fx-font-size: 25px;
}

.styled-text-area .source-segment, .styled-text-area .plain-source-segment {
-fx-font-size: 25px;
}

But the font size of the scrip editor is still the default.

Let’s ask @mats.gisselson

:cry:

There are options to increase and decrease the font size under the View menu when a script is open.

3 Likes

This happens because code editor does not use css, instead it’s configured from code β€” see editor.code.view namespace.

2 Likes