Disable OpenType `ccmp` Glyph Composition in CSS

112 Views Asked by At

I'm using a font called Lora in an Electron app, and I encountered a problem where text like mysterious `accent` is automatically converted to mysterious àccent due to OpenType glyph composition.

<p>mysterious `accent`</p>

becomes:

glyph composition

I tried disabling this feature using font-feature-settings: "ccmp" off, but no luck. This is happening inside of an Electron app, but I'm strangely unable to reproduce it on e.g. the Google Fonts page in Chrome.

How can I correctly disable the ccmp OpenType feature in Electron?

1

There are 1 best solutions below

0
Benjamin Bray On

It turned out to be a bug with the font, and has since been fixed in the latest release.