project icon indicating copy to clipboard operation
project copied to clipboard

Project: Dyslexia extension

Open estelle opened this issue 3 years ago • 0 comments

https://github.com/OpenDyslexic/opendyslexic-chrome/issues/49

OpenDyslexic is an extension used by many people with dyslexia to enable easier reading comprehension. Unforutately, the font only covers a limited, not-defined list of characters.

To prevent "missing character" box icons from showing up when OpenDyslexic is used, add the unicode-range font-descriptor to the @font-face declaration, limiting the font to only the characters in the range in both the chrome and firefox extension.

@font-face { font-family: 'opendyslexic'; src: url('chrome-extension://MSG@@extension_id_/fonts/opendyslexic/OpenDyslexic-Bold.otf'); font-weight: bold; font-style: normal; unicode-range: /* range of characters in OD */ } @font-face supports the unicode-range font descriptor, which defines the range of characters for which a given face may be used. Adding unicode-range to the above with a value reflecting the available characters in openDislexic (OD) would mean a fallback font would be used for any characters not in the range.

Figuring out the /* range of characters in OD */ is a decently large task that has to be done manually unless someone knows a quick way of doing it..

estelle avatar Jul 13 '22 07:07 estelle