From b8ef593533e26aed7992725f34113fc6dd27762a Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Mon, 22 Mar 2021 08:25:54 -0400 Subject: [PATCH] Relax requirement to include a dict Cf. fonttools/fonttools#2234 I think it's too strict to require a . An empty should be OK. Also, there's a grammatical error in the sentence, which I fixed. --- versions/ufo3/glyphs/glif.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/ufo3/glyphs/glif.md b/versions/ufo3/glyphs/glif.md index 02f2fcd..9cfe33d 100644 --- a/versions/ufo3/glyphs/glif.md +++ b/versions/ufo3/glyphs/glif.md @@ -333,7 +333,7 @@ This element is a place for the user to define arbitrary text about the glyph. T {: #lib } ### lib: Custom data storage. -This element is a place to store authoring tool specific, user specific or otherwise arbitrary data for the glyph. lib must have one child element that is structure as a dictionary formatted as an [XML Property List]. This element may occur at most once. In order to prevent conflicts in the lib, keys in the top level should follow a [reverse domain naming scheme]. The pattern "public.\*", where \* represents an arbitrary string of one or more characters, is reserved for use in standardized lib keys. It is recommended that the data stored as a value be as shallow as possible. +This element is a place to store authoring tool specific, user specific or otherwise arbitrary data for the glyph. lib must have either zero or one child element that is structured as a dictionary formatted as an [XML Property List]. This element may occur at most once. In order to prevent conflicts in the lib, keys in the top level should follow a [reverse domain naming scheme]. The pattern "public.\*", where \* represents an arbitrary string of one or more characters, is reserved for use in standardized lib keys. It is recommended that the data stored as a value be as shallow as possible. Data that is too complex or too large for lib can be stored in the [data directory].