Were reported in viewtopic.php?p=48590#p48590 . Tested on 15.0.0.2974
1. name ID=1 and 2 are still not exported even when explicitly in Font Properties - Font - Family Name and Instances - General - Style Name.
2. Generated font files contains platformID=1 platEncID=0 while generated UFO files doesn't.
3. The features.fea file might sometimes contains glyph names that are over 63 characters long. E.g. name: `katakanasmallhu_katakanahiraganasemivoicedsoundmarkcomb-kana.ccmp.1` is 65 characters long. This is auto-generated name by FontCreator.
4. [new] Generated @BASE and @MARK class definition are written as @\BASE and @\MARK, causing parsing failure.
Also text files in UFO are still UTF-8 with BOM, but preferably should not have the BOM mark.
[CLOSED] More bugs with UFO
-
- Moderator
- Posts: 11472
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: More bugs with UFO
We don't see any problems here. Please send us a font project to further look into it.
Platform 1 (Macintosh) is excluded by default. Did you uncheck the Exclude legacy data setting on the Font tab?
We try to follow the syntax as described in the Adobe OpenType Feature File Specification:
https://adobe-type-tools.github.io/afdk ... ation.html
But we did not comply to one of the glyph name restrictions, being:
A glyph name may be up to 63 characters in length
Please send us a font project with this issue, so we can try to fix it.
We think we it is correct to use a backslash after the ampersand, like @/nameofglyphclass, but we feel the specification is unclear about it:
2.g.ii. Named glyph classes
A glyph class can be named by assigning it to a glyph class name, which begins with the “@” character, and then referred to later on by the glyph class name.
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.
An initial backslash serves to differentiate a glyph name from an identical keyword in the feature file language.
We actually prefer a BOM, is there some formal statement that explains to avoid it?
Re: More bugs with UFO
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.1. name ID=1 and 2 are still not exported even when explicitly in Font Properties - Font - Family Name and Instances - General - Style Name.
Sorry, this is on me.Platform 1 (Macintosh) is excluded by default. Did you uncheck the Exclude legacy data setting on the Font tab?
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.The features.fea file might sometimes contains glyph names that are over 63 characters long
The specification only specified the restrictions are the same, it do not explicitly say class names after the @ can follow the glyph name specification:We think we it is correct to use a backslash after the ampersand, like @/nameofglyphclass, but we feel the specification is unclear about it:
which in this case I don't think the backslash is allowed in class names; the specification only allows glyph names to have backslash.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.
Also even if backslash is allowed, the GDEF fea is not using the backslash making it unable to be matched.
Code: Select all
@\BASE = [A Aacute Acircumflex Agrave Amacron];
@\MARK = [gravecomb acutecomb u0302 u030C u0304];
table GDEF {
GlyphClassDef @BASE,, @MARK,;
} GDEF;
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.We actually prefer a BOM, is there some formal statement that explains to avoid it?
https://www.unicode.org/versions/Unicode15.0.0/ch02.pdf
Currently FontTools breaks when parsing features.fea file.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.
- Attachments
-
- MyFont-Regular.ufo.zip
- (81.73 KiB) Downloaded 128 times
-
- MyFont-Regular-customnamesremoved.ttf
- (8.3 KiB) Downloaded 115 times
-
- My Font.fcp
- (7.9 KiB) Downloaded 104 times
-
- Moderator
- Posts: 11472
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: More bugs with UFO
They are generated on exporting as Web or Desktop font, but they are not automatically generated on exporting as UFO. So you need to provide both StyleMapFamily and StyleMapFamily.NFSL2001 wrote: ↑Wed May 15, 2024 1:02 pmSorry 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.1. name ID=1 and 2 are still not exported even when explicitly in Font Properties - Font - Family Name and Instances - General - Style Name.
In a next update we will shorten the glyph names that are too long.NFSL2001 wrote: ↑Wed May 15, 2024 1:02 pmThe 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.The features.fea file might sometimes contains glyph names that are over 63 characters long
Consider it done.NFSL2001 wrote: ↑Wed May 15, 2024 1:02 pmThe specification only specified the restrictions are the same, it do not explicitly say class names after the @ can follow the glyph name specification:We think we it is correct to use a backslash after the ampersand, like @/nameofglyphclass, but we feel the specification is unclear about it:
which in this case I don't think the backslash is allowed in class names; the specification only allows glyph names to have backslash.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.
Also even if backslash is allowed, the GDEF fea is not using the backslash making it unable to be matched.
I would say to use class names without backslash (@BASE, @MARK) as AFDKO makeotf and fonttools raise errors in parsing this feature syntax.Code: Select all
@\BASE = [A Aacute Acircumflex Agrave Amacron]; @\MARK = [gravecomb acutecomb u0302 u030C u0304]; table GDEF { GlyphClassDef @BASE,, @MARK,; } GDEF;
We will stop adding a BOM.NFSL2001 wrote: ↑Wed May 15, 2024 1:02 pmNot 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.We actually prefer a BOM, is there some formal statement that explains to avoid it?
https://www.unicode.org/versions/Unicode15.0.0/ch02.pdfCurrently FontTools breaks when parsing features.fea file.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.
-
- Moderator
- Posts: 11472
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: More bugs with UFO
This release solves the issues.
https://www.high-logic.com/tmp/fontcrea ... 82-x64.exe
Please let us know your results.
https://www.high-logic.com/tmp/fontcrea ... 82-x64.exe
Please let us know your results.
Re: More bugs with UFO
Thanks, most seem to be resolved.
I would like to ask what does Font Properties - Font - Family Name does in this case if it doesn't provide the nameID=1.
I believe you meant StyleMapFamilyName and StyleMapStyleName in Font Properties - Instances.They are generated on exporting as Web or Desktop font, but they are not automatically generated on exporting as UFO. So you need to provide both StyleMapFamily and StyleMapFamily.
I would like to ask what does Font Properties - Font - Family Name does in this case if it doesn't provide the nameID=1.
-
- Moderator
- Posts: 11472
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: More bugs with UFO
Yes, I meant those two names.
Then it might be used to generate Full Font Name and Unique Font Identifier.