MCPcopy Index your code
hub / github.com/arrowtype/recursive / kerningCompatibility

Function kerningCompatibility

mastering/prep_fonts.py:478–491  ·  view source on GitHub ↗

Adds dummy kerning to a font that has no kerning. *fonts* is a `list` of font objects (Defcon or FontParts).

(fonts)

Source from the content-addressed store, hash-verified

476
477
478def kerningCompatibility(fonts):
479 """
480 Adds dummy kerning to a font that has no kerning.
481
482 *fonts* is a `list` of font objects (Defcon or FontParts).
483 """
484
485 local_report = report.get("Added blank kerning", [])
486
487 for font in fonts:
488 if len(font.kerning) == 0:
489 font.kerning[("A", "A")] = 0
490 local_report.append(font.info.familyName + " " + font.info.styleName)
491 report["Added blank kerning"] = local_report
492
493
494def makeCompatible(fonts):

Callers 1

prepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected