comicDisplayFor function

TextStyle comicDisplayFor(
  1. String words,
  2. TextStyle style
)

Keeps the visual weight of Bangers when a right-to-left word uses a fallback face. Connected letters use the font's own spacing. Lettering whose marks reach past a plain capital gets the leading they need (comicMarkedLeading).

Implementation

TextStyle comicDisplayFor(String words, TextStyle style) =>
    comicRightToLeftScript(words)
    ? style.copyWith(fontWeight: FontWeight.w700, letterSpacing: 0)
    : comicMarkedLeading(words, style);