- name ID=1 and 2 are still not exported even when explicitly in Font Properties - Font - Family Name and Instances - General - Style Name.
Sorry I was unclear on this one: localised names in UFO are missing ID=1 and 2. In the attached UFO (zipped) file, you can see there is only name ID=16 but no ID=1, but the binary font file has ID=1 and no ID=16.
Platform 1 (Macintosh) is excluded by default. Did you uncheck the Exclude legacy data setting on the Font tab?
Sorry, this is on me.
The features.fea file might sometimes contains glyph names that are over 63 characters long
The glyphs and combined glyph which had the 65 characters name are in the FCP file for reference. I have removed all custom names in the TTF, and opening it in FontCreator still autocompletes the long name. The name is in the UFO fea file too.
We think we it is correct to use a backslash after the ampersand, like @/nameofglyphclass, but we feel the specification is unclear about it:
The specification only specified the restrictions are the same, it do not explicitly say class names after the @ can follow the glyph name specification:
The part of the glyph class name after the “@” is > subject to the same name restrictions > that apply to a production glyph name except that hyphens are also allowed.
which in this case I don’t think the backslash is allowed in class names; the specification only allows glyph names to have backslash.
Also even if backslash is allowed, the GDEF fea is not using the backslash making it unable to be matched.
@\BASE = [A Aacute Acircumflex Agrave Amacron];
@\MARK = [gravecomb acutecomb u0302 u030C u0304];
table GDEF {
GlyphClassDef @BASE,, @MARK,;
} GDEF;
I would say to use class names without backslash (@BASE, @MARK) as AFDKO makeotf and fonttools raise errors in parsing this feature syntax.
We actually prefer a BOM, is there some formal statement that explains to avoid it?
Not in the UFO spec (file names has to be UTF-8 but not the contents). However, Unicode does not recommend using BOM in UTF-8.
https://www.unicode.org/versions/Unicode15.0.0/ch02.pdf
Use of a BOM is neither required nor recommended for UTF-8, but
may be encountered in contexts where UTF-8 data is converted from other encoding forms
that use a BOM or where the BOM is used as a UTF-8 signature. See the “Byte Order
Mark” subsection in Section 23.8, Specials, for more information.
Currently FontTools breaks when parsing features.fea file.
MyFont-Regular.ufo.zip (81.7 KB)
MyFont-Regular-customnamesremoved.ttf (8.3 KB)
My Font.fcp (7.9 KB)