Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I'm using this tool again and wanted to provide a solution for the garbled text for 2.3. I'm currently using Gamemaker v.2.3.2.420 of the runtime, IDE v2.3.2.556.

Importing Fonts
  1. Use BMFont and the converter tool to get your YY file for Gamemaker 2.3 as expected
  2. Create a new font in your Gamemaker project with the same name
  3. Close Gamemaker
  4. Replace the files
Garbled Font

There appears to be a number of errors in the generation of the YY file, which causes Gamemaker to try and repair the file. When it does, it breaks the font at runtime. So basically the PNG is the new font, the YY is the old font. If using GIT or other source control I strongly recommend staging your changes before making the following changes. Gamemaker will complain about each of the issues below when you clean so it's mostly a matter of fixing it as you go.

  1. Open Gamemaker and clean the asset cache
  2. The YY will have the size set to "null.0" change this to a valid number, like "12.0"
  3. Each glyph entry has an offset set to "null". Change this to "0"
  4. I noticed a duplicate key for "kerningPairs" was entered with "ranges" as a child, instead of a sibling. Delete the duplicate key.

After making these changes it worked as expected.