From d0101eff1e655d95c7baf49909d50cf5989f8ccb Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 15 Mar 2021 11:34:36 +0000 Subject: [PATCH 1/2] Correct otlLib documentation --- Lib/fontTools/otlLib/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/otlLib/builder.py b/Lib/fontTools/otlLib/builder.py index ca9e936d6..fd7508e29 100644 --- a/Lib/fontTools/otlLib/builder.py +++ b/Lib/fontTools/otlLib/builder.py @@ -1029,7 +1029,7 @@ class MarkMarkPosBuilder(LookupBuilder): builder.marks["acute"] = (0, a1) builder.marks["grave"] = (0, a1) builder.marks["cedilla"] = (1, a2) - builder.baseMarks["acute"] = (0, a3) + builder.baseMarks["acute"] = {0: a3} Attributes: font (``fontTools.TTLib.TTFont``): A font object. From f2f8a6a42af8caf27bf3fd087f408a95b9c695b3 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 15 Mar 2021 13:47:44 +0000 Subject: [PATCH 2/2] Fix docstring too --- Lib/fontTools/otlLib/builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/otlLib/builder.py b/Lib/fontTools/otlLib/builder.py index fd7508e29..08ca23f45 100644 --- a/Lib/fontTools/otlLib/builder.py +++ b/Lib/fontTools/otlLib/builder.py @@ -1037,8 +1037,8 @@ class MarkMarkPosBuilder(LookupBuilder): source which produced this lookup. marks: An dictionary mapping a glyph name to a two-element tuple containing a mark class ID and ``otTables.Anchor`` object. - baseMarks: An dictionary mapping a glyph name to a two-element - tuple containing a mark class ID and ``otTables.Anchor`` object. + baseMarks: An dictionary mapping a glyph name to a dictionary + containing one item: a mark class ID and a ``otTables.Anchor`` object. lookupflag (int): The lookup's flag markFilterSet: Either ``None`` if no mark filtering set is used, or an integer representing the filtering set to be used for this