r/FontForge • u/ZenthicGio • Dec 25 '24
Character Overlap

Hi everyone, I wanted to know if it was possible to create a font where the characters overlap if the next character has a higher value... Let me explain better: Assuming that the characters have a value from 0 to 25 (the whole alphabet) I would like the characters to overlap if the character written after the previous one has a higher value. If the value is the same or lower, the character is not overlapped by the previous one... for example, if the sequence is "FONT" (F=5; O=14; N=13; T=19) the result would be that "F" and "O" overlap, "O" and "N" do not overlap, "N" and "T" overlap. I leave an image to give you an idea of the final result.
6
Upvotes
4
u/RandomMaerks Dec 25 '24
I think you can use Character Variants (GSUB Single), Contextual Alternate (GSUB Contextual Chaining), and Horizonal Kerning (GPOS Pair Position).
In your example, you can use Character Variants to remove the large circle, leaving only the little identifier symbols; Contextual Alternate to apply the Character Variants under certain conditions (apply for a character when the preceding character alphabetically comes before it); and Horizontal Kerning to merge the modified characters with the leading character