Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Pixel Font Converter!

Lets you create your own TTF fonts out of pixel font images! · By YellowAfterlife

Having trouble to get this working

A topic by Edu Sodap created May 13, 2020 Views: 479 Replies: 4
Viewing posts 1 to 3
(1 edit)

First of all, thank you for the awesome tool, I have been waiting for something like this for a long time. Also, yay for using haxe.

I'm trying to use it but I can't get it to work. Preview doesn't show the font, and saving the TTF produces a TTF that windows doesn't recognize as a valid TTF file. I have attached a screenshot in case you can see if I'm doing anything wrong. This was just a quick test but I couldn't get any results!

Perhaps the image is too long? It's a single row for all characters.

btw I'm using Chrome 81.0.4044.138 (64 bit) on windows 10


Developer

Can you post your settings JSON? Does the sample font (which is shown when opening the page) work?

Sample font does work!

This is my settings.json


{
    "$baseURI": "https://yal.cc/r/20/pixelfont/",
    "$version": "1.0",
    "in-glyphs": [
        " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\"!?'.,;:()<>/-+=#_&~*¡¿%[]♦♣♠▲@©®«»$€¥£₽ßçæœÿàáâãäåèéêëìíîïñòóôõöùúûüẞÇÆŒŸÀÁÂÃÄÅÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЫЭЮЯабвгдеёжзийклмнопрстуфхцчшщъьыэюя"
    ],
    "glyph-width": 10,
    "glyph-height": 14,
    "glyph-ofs-x": 2,
    "glyph-ofs-y": 0,
    "glyph-sep-x": 4,
    "glyph-sep-y": 0,
    "glyph-base-x": 0,
    "glyph-base-y": 9,
    "glyph-spacing": 1,
    "font-is-mono": true,
    "font-em-square": 1024,
    "font-line-gap": 0,
    "font-px-size": 128,
    "font-ascend": 768,
    "font-descend": -256,
    "font-name": "Mystery Font",
    "font-author": "You, of course",
    "font-copy": "(c)",
    "font-version": "Version 1.0",
    "font-desc": "Sweet fonts to leave your worries behind you",
    "font-license": "You have the permission",
    "font-license-url": "",
    "font-sample-text": "Hello!",
    "font-preview-text": [
        "adsadTHE QUICK BROWN FOX JUMPS OVER A LAZY DOG.",
        "the quick brown fox jumps over a lazy dog.",
        "0123456789"
    ]
}

Developer (1 edit)

Ah, it's simpler than that actually - your glyphs are white on transparent, and the tool expects black on white or black on transparent. I'll add auto-detection of some kind later. Invert your colors for now.

I see! It's working perfectly now. Thanks for an amazing and much needed tool!