Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMEdit

A high-end code editor for all things GameMaker · By YellowAfterlife

[SOLVED] changing editor font

A topic by davawen created Dec 16, 2020 Views: 824 Replies: 2
Viewing posts 1 to 4
(1 edit)

Hi, i've downloaded GMEdit recently and had a general blast with it, however I wanted to change the original font of the editor and met a problem with the width of the text, as it doesn't match the editor's a cause a weird selection issue

The cursor doesn't move with the text, so it look like it's in the middle of the line while actually being at the end if you try to type somthing.
I'm thinking maybe I did something wrong with my css ?

@import url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
#main .gml * {
  font-family: 'Fira Code';
}

Developer

You would want to apply the rule to .ace-tm, not individual tokens - there is also an element somewhere that Ace uses to calculate font dimensions.

If you want to set the font name only for GML files, you could add a filter like .ace-tm[file-kind*="Gml"] or anything (check the inspector for what fields it has).

But also, if you are doing this locally, you could very well install the font on your system and set the font name in Ctrl+,.

Ah, I've never used an ace based editor editor before, setting the font in ctrl+, worked perfectly !

Thank you for your quick response !