Skip to content

[markFeatureWriter] Allow setting markClassPrefix using writer options#965

Closed
khaledhosny wants to merge 1 commit intomainfrom
mark-writer-class-prefix
Closed

[markFeatureWriter] Allow setting markClassPrefix using writer options#965
khaledhosny wants to merge 1 commit intomainfrom
mark-writer-class-prefix

Conversation

@khaledhosny
Copy link
Copy Markdown
Collaborator

Currently it is only a class attribute, but users may want to set it in fonts (e.g. glyphsLib might use mark prefix like Glyphs does).

Currently it is only a class attribute, but users may want to set it in
fonts (e.g. glyphsLib might use `mark` prefix like Glyphs does).
khaledhosny added a commit to googlefonts/glyphsLib that referenced this pull request Dec 22, 2025
ufo2ft default to `MC` prefix for mark classes, but Glyphs uses `mark`,
since feature code can reference auto generated code, we want to match
Glyphs here.

Depends on googlefonts/ufo2ft#965
@khaledhosny khaledhosny requested a review from anthrotype January 3, 2026 09:54
@anthrotype
Copy link
Copy Markdown
Member

@khaledhosny if we unilaterally changed the default mark class prefix to "mark" like Glyphs.app uses, do you think anybody would notice/care? These are autogenerated and I don't think people would rely on those particular classes for their handwritten features, would they?

@khaledhosny
Copy link
Copy Markdown
Collaborator Author

@khaledhosny if we unilaterally changed the default mark class prefix to "mark" like Glyphs.app uses, do you think anybody would notice/care? These are autogenerated and I don't think people would rely on those particular classes for their handwritten features, would they?

It is a breaking change for sure (from our old behavior), but it is converging with GlyphsApp so I consider it an improvement. I have fonts that depend on fontmake’s current behavior, but fail when used in GlyphsApp, with this change they will fail in both and I’ll have to update them. It is a niche thing, though, so I don’t think many people depend on fontmake’s current behavior.

@anthrotype
Copy link
Copy Markdown
Member

i'm leaning towards just doing and see if anyone complains... in that case we may find a way to support both. Otherwise it'd be adding complication for nothing

@khaledhosny
Copy link
Copy Markdown
Collaborator Author

So instead of this PR, we just change the prefix? I’m OK with that as well.

@anthrotype
Copy link
Copy Markdown
Member

yeah

khaledhosny added a commit that referenced this pull request Mar 9, 2026
Matches GlyphsApp prefix, which allows manual feature code that
references auto-generated mark classes to be compiled by GlyphsApp and
fontmake.

See for #965 alternative
approach and discussion.
@khaledhosny
Copy link
Copy Markdown
Collaborator Author

#974

@khaledhosny khaledhosny closed this Mar 9, 2026
@khaledhosny khaledhosny deleted the mark-writer-class-prefix branch March 9, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants