I think a good way to include ornaments into a webfont could be to use the Private Use Area. This means it will be accessible on the web until OT-features are supported.
Is there a way to assign a Private Use Area number to an already named glyph, A.ornm for instance?
Why would it not be a good idea? I can’t see any negative effects it may have, but I may be missing something.
Here is how I see it:
If the browser support OT-feature it will work (since there is an OT-feature in the font).
If the browser doesn’t support OT-features, people can use unicode to enter the glyphs.
As far as I am concerned this must be the ultimate solution. The A.ornm has nothing to do with the glyph A. It could be called anything, I just named it like that in order to make the OT-feature in Glyphs work.
There is a rule that you should not use encoded glyphs in OpenType features. There are some exemptions but this seems not right.
The ornm feature should not use letters as base characters. Because it will look like and letter in all kinds of places (screen readers, PDF…). Whats wrong with the PUA for ornaments?
The ornm feature should not use letters as base characters
Hrm… but that is how Glyphs is handling the Ornament feature… A.ornm, B.ornm.
But you are right, perhaps it’s better to just name them with PUA:
A follow up question? If I change the glyphs name, from A.ornm to uniE000 will Glyphs keep all kerning, kerning classes, features and everything else related to that glyph?
Yes, in those scenarios it would make sense to just use the PUA, since it does not get copied. But this is highly unlikes with this font, as it’s not a font made for reading text, it’s more a decorative, almost illustration font.
It does. The user of the browser will see some stray "A"s on the website.
this is mostly not for the maker of the website to decide. So you need to find a solution that works always...