Fonts can be complicated. Using nonsense like [1] (specifically contextual alternates), you could have the glyph for the first letter of a word depend on the last letter. I don't think you could get that to work for all letters in an arbitrary length word, but making a font that works for all words shorter than say 20 characters should be doable.

[1] https://blog.glyphdrawing.club/font-with-built-in-syntax-hig...