Bobbie Chen describes building a typeface that turns every letter into a version of the Jamaican flag, following a design shared on Reddit. The basic font draws letters with the flag’s black, green, and gold, using OpenType’s COLR/CPAL color-font capabilities and matching the flag’s proportions. A more ambitious “connected” version makes neighboring letters join visually, so their colored sections form continuous chains. The project demonstrates that a font can handle this behavior internally, without JavaScript or other web code deciding how letters should connect.
To create the effect, Chen reshaped I, J, L, and T to provide useful corner connections, then made alternate glyph forms whose left and right edges have matching colors. OpenType contextual-alternate rules select the right forms across sequences of any length, while additional alternates create overlaps at matching corners; kerning rules tighten selected pairs. W needs versions that return to their starting color, and X retains the original flag design, so it can interrupt the color pattern. The finished connected font contains 2,622 glyphs and 865 rules. Chen presents the work as an iterative experiment rather than a definitive typography method, and points readers to the code while suggesting South Africa’s flag as a possible next challenge.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.