fontspec
fontspec copied to clipboard
Auto-detect accent behaviour
Description
If a font doesn't support a certain accent or combining character or similar that's supported in TU, fontspec could catch that an load a variation of TU that falls back on TeX definitions to fake the accents.
A couple of things are needed here, in particular a library of "fake accent" definitions.
It would be nice if the faked accents could insert the appropriate ActualText
annotation, in order to maintain the integrity of the text for screen readers, copy-paste, and search.
Note that in engines using HarfBuzz (XeTeX, and the upcoming HarfTeX), if the font does not have the combining mark but have the composed version of the base + accent, HarfBuzz will automatically use the composed version, and vice versa, so fontspec should make sure not to break that. But anyway, I don’t think it is fontspec’s job to work around missing character support in the font.