Skip to main content

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

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By DragonRuby

Can more than the default font be loaded?

A topic by Cube Drone created Apr 23, 2019 Views: 553 Replies: 3
Viewing posts 1 to 4

The presence of "font.ttf" hints at some sort of ability to load, like, "otherFont.ttf", but I see no evidence of such an ability while poking through the sample apps or docs

You can replace font.ttf with a different font...

I guess that's a solution

but it's not going to work for my upcoming masterpiece, FONTQUEST IV: THE QUEST FOR MORE FONTS wait actually it is possible that this is a terrible idea for a game

Developer


It appears to be broken in the current build (whoops!), but you can (normally) specify a font filename on any label as part of the array, and DragonRuby will load the font it the first time it sees it used. If not specified, it uses "font.ttf". But again, this is broken in the current build. I'll get that fixed up.


(And also, font.ttf can be replaced outright. If dragonruby-package sees you have your own font.ttf copied into the game directory, it will leave it alone.)

> wait actually it is possible that this is a terrible idea for a game

No, that's actually awesome.  :)