Square 16x16 ASCII font

I found a square ASCII font based on curses I quite like and wanted to share.

I play on 1920x1080 and this filled the screen nicely.

What I did:

  1. Download file from DFFD. http://dffd.wimbli.com/file.php?id=1854
  2. Unzip .ttf into cataclysm > data > font
  3. Navigate to cataclysm > config
  4. edit fonts.json to the following:

{ "fontblending" : true, "fontwidth" : 16, "fontheight" : 16, "fontsize" : 16, "typeface" : "cootuecursessquare16x16", "map_fontwidth" : 16, "map_fontheight" : 16, "map_fontsize" : 16, "map_typeface" : "cootuecursessquare16x16", "overmap_fontwidth" : 16, "overmap_fontheight" : 16, "overmap_fontsize" : 16, "overmap_typeface" : "cootuecursessquare16x16" }

Enjoy!

Edit: My first search didn’t yield any results for a square pure ascii font but my second more detailed search did get some results from 2013 so I apologize for necro! I’ll leave this here anyways for anyone who didn’t see the old ones I guess.

Yaaaaaayyy! I might dl this, looks really nice.

Yup, that’s DF’s square font; there’re even variants.

What’s the license? If it’s free we’d be interested in bundling it with the game.

Unsure, we’d have to contact the original author I guess… I can’t find anything on DFFD about licensing. To be fair I didn’t look that long.

For what ever reason, when I try to use this font, it gets cut off at the top.

Never mind then, if there’s no posted license there’s no license, it doesn’t matter what the author says if asked, we can’t use it.

Been using this font for a long time myself lol, it’s been shared before, think its a bit odd this is the first time Kevin’s seen it :stuck_out_tongue:

That being said, has anyone found a better font than this one for console version? This one works and is better than default, but can’t help but feel there might be better somewhere D:

[quote=“Lanceo90, post:8, topic:8440”]Been using this font for a long time myself lol, it’s been shared before, think its a bit odd this is the first time Kevin’s seen it :stuck_out_tongue:

That being said, has anyone found a better font than this one for console version? This one works and is better than default, but can’t help but feel there might be better somewhere D:[/quote]

I am using this font http://www.squaregear.net/fonts/hitroad.shtml

and why i can change only “map_fontwidth” in the SDL version but in the console version i have to change “fontwidth” as well to make the fonts square, as i dont want them to be square every where as they look wierd

I’ve done the same as in the Op’s post, with an exception: I left the first font listing untouched,

{ "fontblending" : true, "fontwidth" : 8, "fontheight" : 16, "fontsize" : 16, "typeface" : "Terminus", "map_fontwidth" : 16, "map_fontheight" : 16, "map_fontsize" : 16, "map_typeface" : "cootuecursessquare16x16", "overmap_fontwidth" : 16, "overmap_fontheight" : 16, "overmap_fontsize" : 16, "overmap_typeface" : "cootuecursessquare16x16" }

With this, the overmap and map are still square but you get more overmap/map space AND the hud is still nice and readable.

As a side note, if doing the OP or this posts thing, you’ll probably also have to alter the console size to fit your screen again because fontwidth/height is a part of the console height/width calculation in ascii mode.

[quote=“Lanceo90, post:8, topic:8440”]Been using this font for a long time myself lol, it’s been shared before, think its a bit odd this is the first time Kevin’s seen it :stuck_out_tongue:

That being said, has anyone found a better font than this one for console version? This one works and is better than default, but can’t help but feel there might be better somewhere D:[/quote]

[hr]
[center][size=12pt]Font making time![/size][/center]
[hr]
You can make your own font. The Dwarf Fortress forum and wiki for lots of options to choose from. Converting the png to font is pretty easy using this script. I wrote another version that is faster and handles non-square fonts but it has some issues need to be resolved this is my first version and it works.

Monochrome tilesets are better dithering is planned as is support for grayscale. For now edit the image if you have one you like but is greyscale.

Requires; ImageMagick (http://www.imagemagick.org/) and Potrace (http://potrace.sourceforge.net/) and FontForge (https://fontforge.github.io/en-US/) and any dependencies. Those are all available for Windows but you’ll need a batch rename tool to change the names to unicode.

Save the code as .sh, edit the file to match your tileset size/name and run the .sh

[spoiler][code]#!/bin/bash

#THIS SOFTWARE IS PROVIDED ``AS IS’’ AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES

The script; splits the tileset into the 256 tiles, resizes, converts to monochrome (has default dithering),

upscales again (gives a sharp pixelated look to the svg),changes format

png->bmp, uses potrace to create svg from bmp, and finally renames them to the

unicode string that FontForge needs for its svg template import.

Script requires;

ImageMagick (http://www.imagemagick.org/)

Potrace (http://potrace.sourceforge.net/)

FontForge (https://fontforge.github.io/en-US/)

Replace for your tilset

SETNAME=sm16x16 #Name of your tileset to be converted (leave off the png extension)
TILESET=~/Downloads/$SETNAME.png #Where tilset you want to convert lives
TILESIZE=“16x16” #Tile size of the tileset; 10x10, 12x12, 15x15, 16x16, 18x18,…
SCALEUP=“400%” #Changes how transparent pixels are converted to monochrome (dithering sorta…)
FINALRES=“800x800” #Final resolution should be ~80% font em size (approx 1000x1000) and a factor of tilesize
IMGOUTPUT=/tmp/Font/$SETNAME #/tmp is deleted on reboot if you want to keep the png/bmp change this dir
SVGOUTPUT=~/cataclysmddaFont/$SETNAME #svg output to be imported to FontForge

mkdir -p $IMGOUTPUT
mkdir -p $SVGOUTPUT

#ImageMagick and Potrace convert the image into a pixel svg
convert -crop $TILESIZE +repage $TILESET $IMGOUTPUT/tile%01d.png
cd $IMGOUTPUT
mogrify -scale $SCALEUP tile*.png
mogrify -negate tile*.png
mogrify -monochrome tile*.png
mogrify -scale $FINALRES tile*.png
mogrify -format bmp tile*.png
potrace -s --flat $IMGOUTPUT/tile*.bmp

Loop to rename the tile placeholder names to the unicode string used in the FontForge svg template import

i=0
for uni in uni0000 uni263A uni263B uni2665 uni2666 uni2663 uni2660 uni2022 uni25D8 uni25CB uni25D9 uni2642 uni2640 uni266A uni266B uni263C uni25BA uni25C4 uni2195 uni203C uni00B6 uni00A7 uni25AC uni21A8 uni2191 uni2193 uni2192 uni2190 uni221F uni2194 uni25B2 uni25BC uni0020 uni0021 uni0022 uni0023 uni0024 uni0025 uni0026 uni0027 uni0028 uni0029 uni002A uni002B uni002C uni002D uni002E uni002F uni0030 uni0031 uni0032 uni0033 uni0034 uni0035 uni0036 uni0037 uni0038 uni0039 uni003A uni003B uni003C uni003D uni003E uni003F uni0040 uni0041 uni0042 uni0043 uni0044 uni0045 uni0046 uni0047 uni0048 uni0049 uni004A uni004B uni004C uni004D uni004E uni004F uni0050 uni0051 uni0052 uni0053 uni0054 uni0055 uni0056 uni0057 uni0058 uni0059 uni005A uni005B uni005C uni005D uni005E uni005F uni0060 uni0061 uni0062 uni0063 uni0064 uni0065 uni0066 uni0067 uni0068 uni0069 uni006A uni006B uni006C uni006D uni006E uni006F uni0070 uni0071 uni0072 uni0073 uni0074 uni0075 uni0076 uni0077 uni0078 uni0079 uni007A uni007B uni007C uni007D uni007E uni2302 uni00C7 uni00FC uni00E9 uni00E2 uni00E4 uni00E0 uni00E5 uni00E7 uni00EA uni00EB uni00E8 uni00EF uni00EE uni00EC uni00C4 uni00C5 uni00C9 uni00E6 uni00C6 uni00F4 uni00F6 uni00F2 uni00FB uni00F9 uni00FF uni00D6 uni00DC uni00A2 uni00A3 uni00A5 uni20A7 uni0192 uni00E1 uni00ED uni00F3 uni00FA uni00F1 uni00D1 uni00AA uni00BA uni00BF uni2310 uni00AC uni00BD uni00BC uni00A1 uni00AB uni00BB uni2591 uni2592 uni2593 uni2502 uni2524 uni2561 uni2562 uni2556 uni2555 uni2563 uni2551 uni2557 uni255D uni255C uni255B uni2510 uni2514 uni2534 uni252C uni251C uni2500 uni253C uni255E uni255F uni255A uni2554 uni2569 uni2566 uni2560 uni2550 uni256C uni2567 uni2568 uni2564 uni2565 uni2559 uni2558 uni2552 uni2553 uni256B uni256A uni2518 uni250C uni2588 uni2584 uni258C uni2590 uni2580 uni03B1 uni00DF uni0393 uni03C0 uni03A3 uni03C3 uni00B5 uni03C4 uni03A6 uni0398 uni03A9 uni03B4 uni221E uni03C6 uni03B5 uni2229 uni2261 uni00B1 uni2265 uni2264 uni2320 uni2321 uni00F7 uni2248 uni00B0 uni2219 uni00B7 uni221A uni207F uni00B2 uni25A0 uni00A0
do
mv -v “$IMGOUTPUT/tile$((i++)).svg” “$SVGOUTPUT/$uni.svg” #rename the slot to unicode
done

[/code][/spoiler]

After the script has finished there are a few more steps;

[ul][li]Open FontForge, open the font.ttf in DFs art directory. Ctrl+A and clear/delete the default glyphs we are using this as a template[/li]
[li]File/Import (Ctrl+Shift+I), Format: SVG template, find your svg tiles, select all of them and Import[/li]
[li]Elements/Font Info (Ctrl+Shift+F) change the PS Names to the Font name and Under General change the em size to the multiple for your tile size[/li]
[li]File/Generate Fonts…(Ctrl+Shift+G) select TrueType or the type of font you need and Generate it![/li]
[li]Google search how to add fonts for your system[/li]
[li]Enjoy the pixel-y fonts[/li][/ul]

[hr]
[center][size=12pt]Terminal Screenshots (Simple Mood 16x16 based font)[/size]

[spoiler]


[/spoiler][/center]
[hr]

Not entirely true, if it doesn’t have a license, it means the author retains all rights. You can’t use it, unless the author gives you the rights to do so. The author can give rights so long as those rights don’t conflict with any other rights he has given to someone else. Such as if he has given full rights to someone, he can’t give any rights to anyone else, because he gave away all his rights, you would need the permission of the person he gave the full rights to.

There is a lot more to it, but basically means that asking is fine. He can give DDA the rights to use the font, so long as he retains the rights to do so. A license is just a formal declaration of rights.

Not entirely true, if it doesn’t have a license, it means the author retains all rights. You can’t use it, unless the author gives you the rights to do so. The author can give rights so long as those rights don’t conflict with any other rights he has given to someone else. Such as if he has given full rights to someone, he can’t give any rights to anyone else, because he gave away all his rights, you would need the permission of the person he gave the full rights to.

There is a lot more to it, but basically means that asking is fine. He can give DDA the rights to use the font, so long as he retains the rights to do so. A license is just a formal declaration of rights.[/quote]

And absent some written permission (which would be a license, even an e-mail would minimally suffice), we haven’t got anything to go on. Including stuff in DDA makes it CC-BY-SA per our license, so folks need to be aware of that. We’ve had tileset artists get Angry when not realizing that folks could re-use and remix their work for DDA.

Formal posted licenses take away any potential confusion over where or what the Rights are.

Well if the author provides a license for it, then everything is good. Why not just ask for one. If it isn’t compatible, well, nothing we can do about that. But at least we then know, rather then just assuming.

That is to say, if you never ask, you’ll never receive.

I use PixelFont-7 (free for personal use) with new colors :slight_smile:

https://www.dropbox.com/s/w4a5swy2ruwwe8u/Sin%20t%C3%ADtulo.bmp?dl=0