Adds dummy kerning to a font that has no kerning. *fonts* is a `list` of font objects (Defcon or FontParts).
(fonts)
| 476 | |
| 477 | |
| 478 | def 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 | |
| 494 | def makeCompatible(fonts): |