Glyphname extension problems

olho's picture

I've got some odd behaviour testing my PostScript flavoured OpenType that I suspect is down to the naming of certain glyphs. I wondered if anybody could shed some light on where I've gone wrong. I spent a long time matching my glyphs to the exact spec in the FontLab manual too, so I'm a bit frustrated.

In InDesign some of my oldstyle numbers are jumbled. If I add a 1, say, I get a 2!

It could be down to bad Unicode names too. I used FontLab's Generate Unicode tool to populate as many Unicode points as possible. I'm wondering if that was my bum move.

Testing with FontQA does bring up naming issues though, listing the following as errors.

All my small caps, which are named, A.smcp etc.
All my proportional lining numbers, named zero.fitted etc.
All my tabular oldstyle numbers, named zero.taboldstyle etc.
And all my proportional oldstyle numbers, named zero.onum etc.

Looking now, zero.taboldstyle seems to be an erroneous format, but then, the others fail the FontQA test too. Maybe zero.taboldstyle and zero.onum are in fact equivalent, which may explain InDesign's confusion.

Hmm. I'm stuck I suppose. Anyone able to suggest what the names should actually be?

charles ellertson's picture

While I don't much care for your naming scheme, I don't think that is it. I think it is simply that you have a mixup in your classes, so that "two.something" is the second member of one class, where "one.somethingelse" is the second member of the others.

Just a WAG.

For what it is worth, I (following John Hudson, I believe) use one.op (for one, oldsyle proportional), one.lp (for one, lining proportional), one.lt (one, lining tabular), and of course, one.ot (for one, oldstyle tabular)

There is a limit to the total length of the names, and if you get too prolix, you'll hit it fast.

twardoch's picture

The glyphname extension test in FontQA is tied to FontShop's internal glyphname standards. Your glyphnames are perfectly fine.
A.

cuttlefish's picture

You say:
All my small caps, which are named, A.smcp etc.

I think small caps are supposed to be mapped to lowercase character names (e.g., "a.smcp" instead of "A.smcp"), since that's how they are generally used in text. I could be wrong.

charles ellertson's picture

I think small caps are supposed to be mapped to lowercase character names (e.g., “a.smcp” instead of “A.smcp”), since that’s how they are generally used in text. I could be wrong.

I'd say you're wrong. As I understand it, the point is when, say, text is extracted from a PDF, the period & what follows drop out. So, if you had n.smcp c.smcp a.smcp a.smcp, you'd get ncaa. But N.smcp C.smcp A.smcp A.smcp would go to NCAA. Kansas would be happier.

Most small caps should map to caps if small caps aren't available.

cuttlefish's picture

But thats just in the special case of initials/acronyms that for whatever reason are not written in all caps separated with periods (the grammatically correct but typographically ugly way). Any other situation where small caps are used for various sorts of emphasis or what have you, where they might appear along side a regular cap in proper nouns (or any noun in German), should the small caps then not map to the lower case?

Miguel Sousa's picture

> Most small caps should map to caps if small caps aren’t available.

Small caps should map to whatever case they started from. If you're getting small caps by styling lowercase, then the glyphs should map to lowercase. The same applies to uppercase. This is the reason why our fonts have two sets of small cap glyphs, which in terms of features are treated like this,

feature c2sc { # Small caps from caps
sub A by A.sc;
} c2sc;

feature smcp { # Small caps from lowercase
sub a by a.sc;
} smcp;

olho's picture

Well, you've convinced me that my suffixes aren't the problem. In the end I've opted for A.sc zero.ot etc. I appreciate the brevity.

Having changed these and recompiled the font my issues have resolved. Mind you I think the glyph palette in InDesign CS3 (Mac) is a bit buggy as it has crashed the entire app more than a couple of times now –- and not just using my own font.

I've learnt, too having seen the discussion about small caps. So, thanks all.

Syndicate content Syndicate content