Skip to main content

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

Fonts

A topic by sickpleaseohno created 2 days ago Views: 64 Replies: 5
Viewing posts 1 to 3
(+2)

Forgive me if this has been answered already, but how does one upload font types into decker?  I can transfer resources from other decks, but I don't understand how to upload resources. Thanks for any help!

(+3)

It sounds like you understand moving fonts from one deck to another, but you're looking to bring a font in from outside Decker? As in like a regular Windows TTF or whatever font?

Fonts in Decker are kind of their own format, that's not really transferable/convertible from other formats. So unfortunately you can't really just import in from an existing font, you'd have to write some sort of conversion tool. And I think a lot of modern fonts are vector-based which doesn't quite work with Decker's pixel thing.

I know Internet Janitor did do some stuff with converting over some old Windows 3.1 era fonts into Decker, and they're at https://beyondloom.com/decker/goofs/msfonts.html

If you don't mind pixelling in a font manually though then there's the fontedit.deck in the examples folder.

Let me know if I'm totally off-base, if you're just looking to move fonts from another deck let me know and I'll see if I can find some doco on that.

(+1)

Thank you for your reply and the link! You interpreted my rambly post correctly. This is more than enough to get me started. When I played your one game "Get out and run some errands" I noticed that you were using different fonts and I just couldn't understand how you got them there.  Now I feel like I have a better understanding and some resources to go through. Thanks again!

Oh yeah those fonts came from the msfonts deck that I linked!

Developer(+3)

As Millie says, Decker uses its own font format; adapting e.g. an existing TrueType font for Decker will require some manual work, and perhaps a bit of script-wrangling. Your first stop should probably be fontedit.deck, which includes a very simple font editor. As discussed quite recently, since this editor is a deck, you can feel free to extend and customize it to suit your needs.

I wrote an article some time ago which describes how one could build their own DIY importer for pre-existing bitmapped fonts.

The structure Decker uses to represent fonts is described in The Decker Document Format, but this information is only necessary if you wanted to produce Decker fonts from some external tool. The Font Interface in the Decker Reference Manual describes the APIs for manipulating fonts on the fly from within Decker.

(+1)

This helps a lot! fontedit.deck will be my first stop as I'm not trying to do anything to extravagant. Thanks for the quick reply!