fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

Auto-detect accent behaviour

Open wspr opened this issue 5 years ago • 2 comments

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.

wspr avatar Mar 21 '19 12:03 wspr

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.

tail-reversion avatar Mar 21 '19 14:03 tail-reversion

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.

khaledhosny avatar May 02 '19 09:05 khaledhosny