Page 1 of 1

Export html namelist

Posted: Wed May 06, 2015 5:47 pm
by outofstepfontco
Hi everyone
This is a stretch, but it's based on a whole lot of work that I did today.

I spent today building character maps for our online font store. In order to do this, I needed to generate a list of only those glyphs that a font used, with their references in an acceptable html format.

Since Fontcreator has no functionality to assist with this, I used FontForge.

I used FontForge's Encoding > Compact function to reduce the list of glyphs to only those that had characters.
I then saved a namelist file (.nam), which generates references in the following format:
0x0022 quotedbl
0x0023 numbersign
0x0024 dollar
0x0025 percent
0x0026 ampersand
0x0027 quotesingle
0x0028 parenleft
0x0029 parenright
0x002B plus

I then replaced " *" with ";" and then replace "0x" with "&#x" to convert the references to " format for use in html.

This was a lot of work for each font, and FontForge doesn't include all of my glyphs in its namelist file.

If enough people think this would be useful for them, please say so here!

Re: Export html namelist

Posted: Wed May 06, 2015 8:44 pm
by Bhikkhu Pesala
You could simply print the font's character set to a PDF file. This will provide outlines of each glyph as well as the glyph names. Instead of glyph names, you can show Unicode Hex or Decimal codepoints in the overview caption if you prefer.
Print Characters.png
Print Characters.png (33.09 KiB) Viewed 5826 times

Re: Export html namelist

Posted: Fri May 08, 2015 6:22 pm
by outofstepfontco
While I appreciate the thought,
That's not acceptable for inclusion in a professional typeface store.

Re: Export html namelist

Posted: Fri May 08, 2015 6:38 pm
by Bhikkhu Pesala
I don't see what's so bad about a PNG image or PDF file as opposed to an HTML generated image that doesn't even work in my browser (Opera 12.17).

Re: Export html namelist

Posted: Fri May 08, 2015 7:38 pm
by MikeW
It would be nice to be able to do this from my perspective as well.

I think I one could write a basic page to reference any given WOFF and have it display as desired. While it might be nice if Erwin & Company did this, I don't think it's rocket science. I am mostly taking the weekend off, but may have a play anyway.

Mike