fontParts icon indicating copy to clipboard operation
fontParts copied to clipboard

Improve kerning get and find documentation.

Open typesupply opened this issue 2 years ago • 0 comments

A discussion about this on the RoboFont Discord.

font = RFont(showInterface=False)
font.groups["public.kern1.Y"] = ["Y", "Y.alt"]
font.groups["public.kern2.Z"] = ["Z", "Z.alt"]
font.kerning["A", "B"] = 1
font.kerning["public.kern1.Y", "public.kern2.Z"] = 2

print(f"get: A B: {font.kerning.get(('A', 'B'))}")
print(f"get: Y Z: {font.kerning.get(('Y', 'Z'))}")

print(f"find: A B: {font.kerning.find(('A', 'B'))}")
print(f"find: Y Z: {font.kerning.find(('Y', 'Z'))}")

typesupply avatar Mar 13 '23 13:03 typesupply