go-text / typesetting

High quality text shaping in pure Go.
Other
88 stars 11 forks source link

Make "arbitrary face" deterministic #84

Closed whereswaldon closed 11 months ago

whereswaldon commented 12 months ago

Right now the fontscan package returns a face by iterating over a map, which means that it can choose a different face in identical circumstances. This can result in pathological displays like mismatched tofu:

image

We should iterate in a non-random way so that tofu is all from a single font.