mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 10:53:35 +01:00
Each shape votes for every face it fits, and each glyph is set in the face with the most votes. When faces tied, each glyph took its own closest face, so one line could be set in several fonts. With Noto Sans CJK SC loaded, simplified Source Sans 3 outlines of "Tim" fit both faces (and Noto Sans Hebrew) three times each: T and m took Source Sans 3 and i took Noto Sans CJK SC, so T and m were left as lone outlines. A tie now goes to the face with the least leftover distance summed over the shapes that fit it, so every glyph that fits that face takes it.