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 "
%04x&#x%x;
" "$n" "$n" + done +done diff --git a/readme.tpl b/readme.tpl new file mode 100644 index 0000000..91ce4a7 --- /dev/null +++ b/readme.tpl @@ -0,0 +1,77 @@ + + + + + + Vidéoway Mono + + + + +

Videoway Mono

+

version 1.003

+

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.

+

FAQ

+

Which one do I pick?

+

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.

+

What's with the HiDPi version?

+

Check the Charset section below.

+

The zero is wrong!

+

There's an alternate one at U+FF10.

+

What's with the accented uppercase characters?

+

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.

+

The kerning is all over the place!

+

Yeah, I checked, it was like this on the original Videoway too.

+

Where did you get this from?

+

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.

+

Who are you? Why are you doing this?

+

I'm Yuki, and this is a love letter to the cable box of my childhood.

+

Charset

+

Videoway Mono-HiDpi

+

Renders best at 22px or multiples thereof. This one is the most accurate to the original Videoway font, recommended for larger font sizes.

+
+%GLYPHS% +
+

Videoway Mono

+

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.

+
+
00d7×
2714
+
+ + \ No newline at end of file diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..6f56eac --- /dev/null +++ b/styles.css @@ -0,0 +1,12 @@ +@font-face { + font-family: "Videoway Mono"; + src: local("Videoway Mono"), + url("VideowayMono.woff2") format("woff"), + url("VideowayMono.ttf") format("ttf"); +} +@font-face { + font-family: "Videoway Mono-HiDpi"; + src: local("Videoway Mono-HiDpi"), + url("VideowayMonoHiDpi.woff2") format("woff"), + url("VideowayMonoHiDpi.ttf") format("ttf"); +} \ No newline at end of file