diff --git a/css/ReadiumCSS-config.css b/css/ReadiumCSS-config.css index e66e7823..c63932b3 100644 --- a/css/ReadiumCSS-config.css +++ b/css/ReadiumCSS-config.css @@ -48,7 +48,7 @@ @custom-selector :--a11y-normalize [style*="readium-a11y-on"]; /* Accessibility font. You can add selectors, using “, ” as a separator, if you have multiple fonts */ -@custom-selector :--a11y-font [style*="AccessibleDfa"], [style*="IA Writer Duospace"]; +@custom-selector :--a11y-font [style*="AccessibleDfA"], [style*="IA Writer Duospace"]; /* Direction i.e. ltr and rtl */ @custom-selector :--ltr [dir="ltr"]; diff --git a/css/demo/css/ReadiumCSS-after.css b/css/demo/css/ReadiumCSS-after.css index 69384a34..b964bc11 100644 --- a/css/demo/css/ReadiumCSS-after.css +++ b/css/demo/css/ReadiumCSS-after.css @@ -667,11 +667,11 @@ body { Repo: https://github.com/readium/readium-css */ -/* For AccessibleDfa, we need to normalize font-weight and font-style since only the normal style is available */ +/* For AccessibleDfA, we need to normalize font-weight and font-style since only the normal style is available */ -:root[style*="readium-font-on"][style*="AccessibleDfa"] { +:root[style*="readium-font-on"][style*="AccessibleDfA"] { /* We won’t use the variable there since we need fallbacks for missing characters */ - font-family: AccessibleDfa, Verdana, Tahoma, "Trebuchet MS", sans-serif !important; + font-family: AccessibleDfA, Verdana, Tahoma, "Trebuchet MS", sans-serif !important; --RS__lineHeightCompensation: 1.167; } @@ -688,7 +688,7 @@ body { /* Maybe users want a setting to normalize any font offered so there is a “a11y Normalize” flag for it */ -:root[style*="readium-font-on"][style*="AccessibleDfa"], +:root[style*="readium-font-on"][style*="AccessibleDfA"], :root[style*="readium-font-on"][style*="IA Writer Duospace"], :root[style*="readium-font-on"][style*="readium-a11y-on"] { font-style: normal !important; @@ -697,7 +697,7 @@ body { /* Targeting everything except code. Note that Open Dyslexic has a monospaced font for code */ -:root[style*="readium-font-on"][style*="AccessibleDfa"] *:not(code):not(var):not(kbd):not(samp), +:root[style*="readium-font-on"][style*="AccessibleDfA"] *:not(code):not(var):not(kbd):not(samp), :root[style*="readium-font-on"][style*="IA Writer Duospace"] *:not(code):not(var):not(kbd):not(samp), :root[style*="readium-font-on"][style*="readium-a11y-on"] *:not(code):not(var):not(kbd):not(samp) { font-family: inherit !important; @@ -707,7 +707,7 @@ body { /* Normalizing text-decoration, subs and sups */ -:root[style*="readium-font-on"][style*="AccessibleDfa"] *, +:root[style*="readium-font-on"][style*="AccessibleDfA"] *, :root[style*="readium-font-on"][style*="IA Writer Duospace"] *, :root[style*="readium-font-on"][style*="readium-a11y-on"] * { text-decoration: none !important; @@ -716,10 +716,10 @@ body { font-variant-position: normal !important; } -:root[style*="readium-font-on"][style*="AccessibleDfa"] sup, +:root[style*="readium-font-on"][style*="AccessibleDfA"] sup, :root[style*="readium-font-on"][style*="IA Writer Duospace"] sup, :root[style*="readium-font-on"][style*="readium-a11y-on"] sup, -:root[style*="readium-font-on"][style*="AccessibleDfa"] sub, +:root[style*="readium-font-on"][style*="AccessibleDfA"] sub, :root[style*="readium-font-on"][style*="IA Writer Duospace"] sub, :root[style*="readium-font-on"][style*="readium-a11y-on"] sub { font-size: 1rem !important; diff --git a/css/demo/css/ReadiumCSS-before.css b/css/demo/css/ReadiumCSS-before.css index e436a572..1562c2ef 100644 --- a/css/demo/css/ReadiumCSS-before.css +++ b/css/demo/css/ReadiumCSS-before.css @@ -305,10 +305,10 @@ math { /* /!\ Mind the path (relative to the folders in which you have stylesheets and the fonts) */ @font-face { - font-family: AccessibleDfa; + font-family: AccessibleDfA; font-style: normal; font-weight: normal; - src: local("AccessibleDfa"), + src: local("AccessibleDfA"), url("fonts/AccessibleDfA.otf") format("opentype"); } diff --git a/css/dist/ReadiumCSS-after.css b/css/dist/ReadiumCSS-after.css index 69384a34..b964bc11 100644 --- a/css/dist/ReadiumCSS-after.css +++ b/css/dist/ReadiumCSS-after.css @@ -667,11 +667,11 @@ body { Repo: https://github.com/readium/readium-css */ -/* For AccessibleDfa, we need to normalize font-weight and font-style since only the normal style is available */ +/* For AccessibleDfA, we need to normalize font-weight and font-style since only the normal style is available */ -:root[style*="readium-font-on"][style*="AccessibleDfa"] { +:root[style*="readium-font-on"][style*="AccessibleDfA"] { /* We won’t use the variable there since we need fallbacks for missing characters */ - font-family: AccessibleDfa, Verdana, Tahoma, "Trebuchet MS", sans-serif !important; + font-family: AccessibleDfA, Verdana, Tahoma, "Trebuchet MS", sans-serif !important; --RS__lineHeightCompensation: 1.167; } @@ -688,7 +688,7 @@ body { /* Maybe users want a setting to normalize any font offered so there is a “a11y Normalize” flag for it */ -:root[style*="readium-font-on"][style*="AccessibleDfa"], +:root[style*="readium-font-on"][style*="AccessibleDfA"], :root[style*="readium-font-on"][style*="IA Writer Duospace"], :root[style*="readium-font-on"][style*="readium-a11y-on"] { font-style: normal !important; @@ -697,7 +697,7 @@ body { /* Targeting everything except code. Note that Open Dyslexic has a monospaced font for code */ -:root[style*="readium-font-on"][style*="AccessibleDfa"] *:not(code):not(var):not(kbd):not(samp), +:root[style*="readium-font-on"][style*="AccessibleDfA"] *:not(code):not(var):not(kbd):not(samp), :root[style*="readium-font-on"][style*="IA Writer Duospace"] *:not(code):not(var):not(kbd):not(samp), :root[style*="readium-font-on"][style*="readium-a11y-on"] *:not(code):not(var):not(kbd):not(samp) { font-family: inherit !important; @@ -707,7 +707,7 @@ body { /* Normalizing text-decoration, subs and sups */ -:root[style*="readium-font-on"][style*="AccessibleDfa"] *, +:root[style*="readium-font-on"][style*="AccessibleDfA"] *, :root[style*="readium-font-on"][style*="IA Writer Duospace"] *, :root[style*="readium-font-on"][style*="readium-a11y-on"] * { text-decoration: none !important; @@ -716,10 +716,10 @@ body { font-variant-position: normal !important; } -:root[style*="readium-font-on"][style*="AccessibleDfa"] sup, +:root[style*="readium-font-on"][style*="AccessibleDfA"] sup, :root[style*="readium-font-on"][style*="IA Writer Duospace"] sup, :root[style*="readium-font-on"][style*="readium-a11y-on"] sup, -:root[style*="readium-font-on"][style*="AccessibleDfa"] sub, +:root[style*="readium-font-on"][style*="AccessibleDfA"] sub, :root[style*="readium-font-on"][style*="IA Writer Duospace"] sub, :root[style*="readium-font-on"][style*="readium-a11y-on"] sub { font-size: 1rem !important; diff --git a/css/dist/ReadiumCSS-before.css b/css/dist/ReadiumCSS-before.css index e436a572..1562c2ef 100644 --- a/css/dist/ReadiumCSS-before.css +++ b/css/dist/ReadiumCSS-before.css @@ -305,10 +305,10 @@ math { /* /!\ Mind the path (relative to the folders in which you have stylesheets and the fonts) */ @font-face { - font-family: AccessibleDfa; + font-family: AccessibleDfA; font-style: normal; font-weight: normal; - src: local("AccessibleDfa"), + src: local("AccessibleDfA"), url("fonts/AccessibleDfA.otf") format("opentype"); } diff --git a/css/src/modules/ReadiumCSS-fonts.css b/css/src/modules/ReadiumCSS-fonts.css index 8390e50a..bb8ed1db 100644 --- a/css/src/modules/ReadiumCSS-fonts.css +++ b/css/src/modules/ReadiumCSS-fonts.css @@ -8,8 +8,8 @@ /* /!\ Mind the path (relative to the folders in which you have stylesheets and the fonts) */ @font-face { - font-family: AccessibleDfa; - src: local("AccessibleDfa"), + font-family: AccessibleDfA; + src: local("AccessibleDfA"), url("fonts/AccessibleDfA.otf") format("opentype"); font-weight: normal; font-style: normal; diff --git a/css/src/modules/user-settings-submodules/ReadiumCSS-a11yFont_pref.css b/css/src/modules/user-settings-submodules/ReadiumCSS-a11yFont_pref.css index 4436f48f..8bc90fc9 100644 --- a/css/src/modules/user-settings-submodules/ReadiumCSS-a11yFont_pref.css +++ b/css/src/modules/user-settings-submodules/ReadiumCSS-a11yFont_pref.css @@ -6,11 +6,11 @@ Repo: https://github.com/readium/readium-css */ -/* For AccessibleDfa, we need to normalize font-weight and font-style since only the normal style is available */ +/* For AccessibleDfA, we need to normalize font-weight and font-style since only the normal style is available */ -:root:--font-override[style*="AccessibleDfa"] { +:root:--font-override[style*="AccessibleDfA"] { /* We won’t use the variable there since we need fallbacks for missing characters */ - font-family: AccessibleDfa, Verdana, Tahoma, "Trebuchet MS", sans-serif !important; + font-family: AccessibleDfA, Verdana, Tahoma, "Trebuchet MS", sans-serif !important; --RS__lineHeightCompensation: 1.167; } diff --git a/docs/CSS10-libre_fonts.md b/docs/CSS10-libre_fonts.md index dd730c62..5a488237 100644 --- a/docs/CSS10-libre_fonts.md +++ b/docs/CSS10-libre_fonts.md @@ -439,7 +439,7 @@ As a consequence, we strongly recommend prioritizing such system fonts for the c ReadiumCSS is shipping with 2 a11y-related fonts to be found in the `dist/fonts` folder: -- [AccessibleDfa](https://github.com/Orange-OpenSource/font-accessible-dfa), by Orange; +- [AccessibleDfA](https://github.com/Orange-OpenSource/font-accessible-dfa), by Orange; - [IA Writer Duospace](https://github.com/iaolo/iA-Fonts/tree/master/iA%20Writer%20Duospace), by iA. Those fonts should be applied by those exact names as we need very precise fallbacks for missing characters. We may create variables in the future, once those fonts have been properly reviewed and validated. diff --git a/docs/ReadiumCSS_docs.epub b/docs/ReadiumCSS_docs.epub index 95b0bb84..7bd3deb1 100644 Binary files a/docs/ReadiumCSS_docs.epub and b/docs/ReadiumCSS_docs.epub differ diff --git a/docs/ReadiumCSS_docs/OEBPS/Text/Section-010.xhtml b/docs/ReadiumCSS_docs/OEBPS/Text/Section-010.xhtml index 10756700..d089f377 100644 --- a/docs/ReadiumCSS_docs/OEBPS/Text/Section-010.xhtml +++ b/docs/ReadiumCSS_docs/OEBPS/Text/Section-010.xhtml @@ -785,7 +785,7 @@
ReadiumCSS is shipping with 2 a11y-related fonts to be found in the dist/fonts folder: