underscores

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
Jonne Haven
Posts: 367
Joined: Wed Sep 30, 2015 12:02 pm
Location: Kaneohe, Hawaii, USA

underscores

Post by Jonne Haven » Mon Aug 06, 2018 11:18 pm

Hey Y'all!

Is there any advantage to name my glyphs with underscores instead of spaces?

Thanks

Blessings,

Jonne

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

Re: underscores

Post by Bhikkhu Pesala » Tue Aug 07, 2018 6:07 am

As far as I can tell, a glyphname with spaces, e.g. "f f i" works OK, but it seems to violate the specification: so I suggest not using spaces. I just leave out the underscores to make the name easier to read and type, e.g. "ffi"
2.f.i. Glyph name

A glyph name may be up to 63 characters in length, must be entirely comprised of characters from the following set:

A-Z a-z 0-9 . (period) _ (underscore)

and must not start with a digit or period. The only exception is the special character ".notdef".

"twocents", "a1", and "_" are valid glyph names. "2cents" and ".twocents" are not.

An initial backslash serves to differentiate a glyph name from an identical keyword in the feature file language. (See §2.c for a list of keywords.) For example, a glyph named "table" must be specified in the feature file as:

\table
A glyph name alias database may be used by the implementation of the feature file grammar. If it is used, then it is the responsibility of the implementation to correlate the glyph name aliases used in the feature file with the actual glyph names in the font.
My FontsReviews: MainTypeFont CreatorHelpFC11.5 Pro + MT8.0 @ Win10 1803 build 17134.345

PJMiller
Top Typographer
Top Typographer
Posts: 606
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Re: underscores

Post by PJMiller » Tue Aug 07, 2018 6:28 am

My understanding is that some software doesn't work properly with glyph names that have spaces, it just takes the name of the glyph as the part up to the space which can cause problems and duplications.

Of course Font Creator is well written and works with spaces but be aware that other software might not be so well behaved.

As Bhikkhu Pesala said spaces are not in the specification so software doesn't have to support them.

nabsltd
Posts: 131
Joined: Tue Oct 18, 2016 12:35 am

Re: underscores

Post by nabsltd » Tue Aug 07, 2018 5:00 pm

I've seen a few commercial fonts that still have the glyph names embedded which violate the spec Bhikkhu referred to in various ways (spaces, starts with number, etc.).

FontCreator handles these errors with no problem, and if you export a font without glyph names (the default in FontCreator), there should be no issues.

Erwin Denissen
Moderator
Moderator
Posts: 7394
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: underscores

Post by Erwin Denissen » Tue Aug 07, 2018 5:50 pm

nabsltd wrote:
Tue Aug 07, 2018 5:00 pm
FontCreator handles these errors with no problem, and if you export a font without glyph names (the default in FontCreator), there should be no issues.
FontCreator is very flexible and allows you to user friendly names for glyphs. As soon as your font is ready for production, you can either choose "No" or "Regenerate for release" on exporting the font file.
Erwin Denissen
High-Logic
Proven Font Technology

Jonne Haven
Posts: 367
Joined: Wed Sep 30, 2015 12:02 pm
Location: Kaneohe, Hawaii, USA

Re: underscores

Post by Jonne Haven » Wed Aug 08, 2018 1:22 am

Thank you all for your responses!

So I am understanding that when my font is ready, I am to choose an option on exporting that reads, "No" or "Regenerate for release". I am assuming that if I select the right option my glyphs will automatically be named without spaces as is best to use with software that may not support spaces.

Blessings,

Jonne

PJMiller
Top Typographer
Top Typographer
Posts: 606
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Re: underscores

Post by PJMiller » Wed Aug 08, 2018 6:35 am

If you select 'No' there will be no glyph names which is OK.

If you select 'Regenerate for release' then the glyph names will all be correct and conform to the specification, which is also OK.

No glyph names generates a smaller file.

Post Reply