Skip to content

Commit 633dd44

Browse files
Merge pull request #87 from OpenDyslexic/rebuild
Icon font protection: Font override selectors now use :not(:where(...)) to explicitly exclude icon font elements — Font Awesome (fa-, fas, far, fab, fal, fad), Material Icons/Symbols, Glyphicons, Bootstrap Icons (bi-), Phosphor (ph-), Tabler (ti-), Remix (ri-), and IcoMoon. This prevents OpenDyslexic from breaking icon fonts on websites. Font & CSS overhaul: Split @font-face declarations into separate families (Regular, Italic, Bold, Bold Italic) with font-display: swap, explicit numeric weights, and Arial, sans-serif fallback stacks. Added CSS variables (--opendyslexic-regular, --opendyslexic-line-height, etc.) for consistency. Added helper classes for each font variant (opendyslexic-font-regular, -italic, -bold). Popup UI accessibility: Refactored app.vue with ARIA roles, rel="noopener" on external links, improved list/button semantics. Simplified index.html with proper lang, charset, viewport, and data-theme. New adverts.js module: Centralized promotional link management. Jest test suite: Added Babel/Jest config, Chrome API mocks, and 5 test files covering background scripts, content scripts (badge, engine, utils), and adverts. CSS formatting: Standardized indentation to tabs, normalized quote styles across all stylesheets. We added unicode-range to all 8 @font-face declarations across app.css and core/opendyslexic.css to scope OpenDyslexic to its actual glyph coverage (Latin, Vietnamese, punctuation, math operators, Euro/trademark, and fi/fl ligatures), so the browser falls back to system fonts for unsupported characters instead of rendering blanks.
2 parents e69b04d + 9b721b3 commit 633dd44

30 files changed

+10601
-5526
lines changed

.DS_Store

-4 KB
Binary file not shown.

app/assets/images/Untitled.picasso

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/assets/styles/app.css

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,48 @@
11
@font-face {
22
font-family: 'opendyslexic';
33
src: url('/assets/fonts/opendyslexic/regular.otf');
4+
font-display: swap;
45
font-style: normal;
5-
font-weight: normal;
6+
font-weight: 400;
7+
unicode-range: U+0000-024F, U+0300-036F, U+02B0-02FF, U+03C0, U+1E00-1EFF,
8+
U+2000-206F, U+20AC, U+2122-2126, U+2200-22FF, U+25CA, U+FB01-FB02;
69
}
710

811
@font-face {
912
font-family: 'opendyslexic';
1013
src: url('/assets/fonts/opendyslexic/italic.otf');
14+
font-display: swap;
1115
font-style: italic;
12-
font-weight: normal;
16+
font-weight: 400;
17+
unicode-range: U+0000-024F, U+0300-036F, U+02B0-02FF, U+03C0, U+1E00-1EFF,
18+
U+2000-206F, U+20AC, U+2122-2126, U+2200-22FF, U+25CA, U+FB01-FB02;
1319
}
1420

1521
@font-face {
1622
font-family: 'opendyslexic';
1723
src: url('/assets/fonts/opendyslexic/bold.otf');
18-
font-weight: bold;
24+
font-display: swap;
25+
font-weight: 700;
1926
font-style: normal;
27+
unicode-range: U+0000-024F, U+0300-036F, U+02B0-02FF, U+03C0, U+1E00-1EFF,
28+
U+2000-206F, U+20AC, U+2122-2126, U+2200-22FF, U+25CA, U+FB01-FB02;
2029
}
2130

2231
@font-face {
2332
font-family: 'opendyslexic';
2433
src: url('/assets/fonts/opendyslexic/bold-italic.otf');
25-
font-weight: bold;
34+
font-display: swap;
35+
font-weight: 700;
2636
font-style: italic;
27-
}
28-
29-
@font-face {
30-
font-family: 'opendyslexicmono';
31-
src: url('/assets/fonts/opendyslexic/regular.otf');
32-
font-weight: normal;
33-
font-style: normal;
37+
unicode-range: U+0000-024F, U+0300-036F, U+02B0-02FF, U+03C0, U+1E00-1EFF,
38+
U+2000-206F, U+20AC, U+2122-2126, U+2200-22FF, U+25CA, U+FB01-FB02;
3439
}
3540

3641
.viewport,
3742
body {
3843
width: 290px;
3944
height: 530px;
40-
font-family: 'opendyslexic';
45+
font-family: 'opendyslexic', Arial, sans-serif;
4146
background-color: #55b685;
4247
}
4348

0 commit comments

Comments
 (0)