This is my first post here and I'm still wet behind the ears when it comes much of the tech details of creating a font, so please excuse my noobness.
I've created a little check to see if <code>font-face</code> is supported by a browser. For this I created a TTF file that contains one single glyph, which metrics I check with JavaScript to confirm it actually rendered. I created this font as follows:
- I drew the glyp (a very wide rectangle) and created a one-glyph font with the Icomoon icon font application
- I stripped all metadata (or reduced mandatory metadata to a single character) using a free tool called TTFEdit
This results in a TTF file of just 836 bytes. I was wondering if I could bring the file size down any further.
I tried the following:
- Set the glyph to the space character (as this is a mandatory "glyph" in the Icomoon tool, so it technically contains two glyps together with my custom one). But is seems Windows (or at least Chrome on Windows) doesn't allow for this and shows an empty space instead of the glyph you put in your font
- Convert to WOFF, which results in a file of 660 bytes but is supported by fewer browsers than TTF
- Edit the font in FontForge, some other freeware tools, and online apps in an attempt to strip more data. The resulting file was alwas bigger when saved.
I looked for (Linux command line) tools that would allow me to strip the space glyph, tables or further (meta)data from the file. The glyph doesn't have to be pretty, so I could sacrifice stuff like kerning or hinting data. But I can't find any tool that allows me to do this.
Any ideas what else I could try?