Export html namelist

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

Export html namelist

Post by outofstepfontco » Wed May 06, 2015 5:47 pm

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!
FC8.0 Standard

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 6902
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Export html namelist

Post by Bhikkhu Pesala » Wed May 06, 2015 8:44 pm

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 1175 times
My FontsReviews: MainTypeFont CreatorHelpFC11.0 Pro + MT7.0 @ Win10 1703

outofstepfontco
Posts: 48
Joined: Sun Feb 22, 2015 4:35 pm

Re: Export html namelist

Post by outofstepfontco » Fri May 08, 2015 6:22 pm

While I appreciate the thought,
That's not acceptable for inclusion in a professional typeface store.
FC8.0 Standard

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 6902
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Export html namelist

Post by Bhikkhu Pesala » Fri May 08, 2015 6:38 pm

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 CreatorHelpFC11.0 Pro + MT7.0 @ Win10 1703

MikeW
Posts: 404
Joined: Mon May 20, 2013 2:51 pm

Re: Export html namelist

Post by MikeW » Fri May 08, 2015 7:38 pm

It would be nice to be able to do this form 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

Who is online

Users browsing this forum: No registered users and 1 guest