Export html namelist

Got a request? Post it here. Please do not post bug reports here.
Post Reply
outofstepfontco
Posts: 90
Joined: Sun Feb 22, 2015 4:35 pm
Contact:

Export html namelist

Post 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!
FC12.0 Professional
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9873
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Export html namelist

Post 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 5820 times
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
outofstepfontco
Posts: 90
Joined: Sun Feb 22, 2015 4:35 pm
Contact:

Re: Export html namelist

Post by outofstepfontco »

While I appreciate the thought,
That's not acceptable for inclusion in a professional typeface store.
FC12.0 Professional
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9873
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Export html namelist

Post 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).
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
MikeW
Posts: 625
Joined: Mon May 20, 2013 2:51 pm

Re: Export html namelist

Post 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
Post Reply