Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast as hell, cross-platform, tiny, hot loaded, and royalty free. · By DragonRuby

Can more than the default font be loaded?

A topic by Cube Drone created Apr 23, 2019 Views: 781 Replies: 3
A moderator has unlisted this topic. It is not visible on the topic listing but you can still reply and make edits.
Viewing posts 1 to 5

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.  :)

Developer unlisted this topic