diff --git a/.gitignore b/.gitignore index d16f7bf..bedf248 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ *.psf *.ttf *.woff2 +*.zip +readme.html \ No newline at end of file diff --git a/Makefile b/Makefile index 90ed0f0..3f61d8c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,16 @@ NAME := VideowayMono -FILES := ${NAME}-11.bdf ${NAME}-22.bdf ${NAME}.ttf ${NAME}HiDpi.ttf ${NAME}.woff2 ${NAME}HiDpi.woff2 ${NAME}.otb ${NAME}.psf ${NAME}-11.fnt ${NAME}-22.fnt ${NAME}.dfont +FILES := ${NAME}-11.bdf \ + ${NAME}-22.bdf \ + ${NAME}.ttf \ + ${NAME}HiDpi.ttf \ + ${NAME}.woff2 \ + ${NAME}HiDpi.woff2 \ + ${NAME}.otb \ + ${NAME}.psf \ + ${NAME}-11.fnt \ + ${NAME}-22.fnt \ + ${NAME}.dfont \ + readme.html .SUFFIXES: .sfd .bdf .otb .psf .fnt .dfont .ttf .woff2 @@ -24,5 +35,15 @@ all: ${FILES} .ttf.woff2: woff2_compress $< +%.html: %.tpl ${NAME}.ttf + sed '/%GLYPHS%/r'<(./gen_glyphs.sh ${NAME}.ttf) $< > $@ + sed -i 's/%GLYPHS%//' $@ + +%.zip: ${FILES} + rm -f $@ + zip -9 $@ ${FILES} styles.css + +dist: ${NAME}.zip + clean: - rm -f ${FILES} ${NAME}.afm + rm -f ${FILES} ${NAME}.afm \ No newline at end of file diff --git a/README.md b/README.md index 08c1cc3..b2e4f0b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A 8x11px font meant to be a complete remake of the font found in the old Videowa It's a bitmap font, so it works best in a multiple of 11px or 8pt. Glyphs are 8 pixels large with a few ones double width, making it ideal for most uses of a monospaced font. -Note: Videoway Mono is available in two variatons: the HiDpi version is mostly identical to the other one but with its resolution doubled: it renders best at a multiple of 22px or 16pt, and a few glyphs like the checkmark are taking advantages of this with a so-called HD version. Anyway, unless you need a version optimized for 11 pixels high you need this one. +Note: Videoway Mono is available in two variations: the HiDpi version is mostly identical to the other one but with its resolution doubled: it renders best at a multiple of 22px or 16pt, and a few glyphs like the checkmark are taking advantages of this with a so-called HD version. Anyway, unless you need a version optimized for 11 pixels high you need this one. ![](demo_sqrt.png) diff --git a/demo_charset.png b/demo_charset.png index dec44f7..1aca89a 100644 Binary files a/demo_charset.png and b/demo_charset.png differ diff --git a/gen_glyphs.sh b/gen_glyphs.sh new file mode 100755 index 0000000..5166a53 --- /dev/null +++ b/gen_glyphs.sh @@ -0,0 +1,6 @@ +#!/bin/bash +for range in $(fc-query --format='%{charset}\n' "$1"); do + for n in $(seq "0x${range%-*}" "0x${range#*-}"); do + printf "
A 8x11px font meant to be a complete remake of the font found in the old Videoway terminals from Vidéotron, with a few additions to cover as much scripts as possible. Hand-made for retrogaming fans, but also a nice font for programmers who want a small, easy to read font. It's a bitmap font, so it works best in a multiple of 11px or 8pt. Glyphs are 8 pixels large with a few ones double width, making it ideal for most uses of a monospaced font.
+The .ttf ones should just work out of the box. On MacOS, the .dfont should work as well. On Linux, you should be able to figure it out. Finally, if you're embedding this font on the web, you can pick the .woff2 files and use them with the included CSS stylesheet.
+Check the Charset section below.
+There's an alternate one at U+FF10.
+The original Videoway font notably didn't have any accented uppercase characters (or a lot of the symbols shown here), but for convenience, I created new ones. You should take this in consideration when emulating the Videoway.
+Yeah, I checked, it was like this on the original Videoway too.
+Credits to plgDavid who extracted the font from a Videoway terminal (accounting for the Basic Latin Unicode block, the accented lowercase letters used in French and some symbols), a few of them were copied from old screenshots and the rest are my own creation.
+I'm Yuki, and this is a love letter to the cable box of my childhood.
+Renders best at 22px or multiples thereof. This one is the most accurate to the original Videoway font, recommended for larger font sizes.
+Renders best at 11px. Recommended if you need a small font, such as in a text editor. It should still be largely the same, except for these glyphs, adapted for a lower resolution.
+