You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This element is a place for the user to define arbitrary text about the glyph. There is no standardized structure for the note apart from that it being the content of the note element.
This "no standardized structure" leads different implementations to do different things with the note, making it hard/impossible to maintain its text unchanged when passing through alternative UFO parser/writers.
As for the fontTools.ufoLib (reference) implementation, it currently does the following:
upon serializing, a newline is inserted at the beginning and at the end of the text content (presumably so that the element tags are on a separate line);
then upon deserializing, newlines are normalized to unix line endings \n and all leading/trailing whitespace is stripped from each line, empty lines are stripped too.
I think the spec should just mandate the above for the sake of interoperability. It's probably too late to change fontTools.ufoLib semantics around <note>.
The text was updated successfully, but these errors were encountered:
https://unifiedfontobject.org/versions/ufo3/glyphs/glif/#note
This "no standardized structure" leads different implementations to do different things with the note, making it hard/impossible to maintain its text unchanged when passing through alternative UFO parser/writers.
see fonttools/fonttools#2745
As for the fontTools.ufoLib (reference) implementation, it currently does the following:
I think the spec should just mandate the above for the sake of interoperability. It's probably too late to change fontTools.ufoLib semantics around
<note>
.The text was updated successfully, but these errors were encountered: