Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion css/ReadiumCSS-config.css
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down
16 changes: 8 additions & 8 deletions css/demo/css/ReadiumCSS-after.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions css/demo/css/ReadiumCSS-before.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions css/dist/ReadiumCSS-after.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions css/dist/ReadiumCSS-before.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions css/src/modules/ReadiumCSS-fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/CSS10-libre_fonts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Binary file modified docs/ReadiumCSS_docs.epub
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/ReadiumCSS_docs/OEBPS/Text/Section-010.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@
<p>ReadiumCSS is shipping with 2 a11y-related fonts to be found in the <code>dist/fonts</code> folder:</p>

<ul>
<li><a href="https://github.com/Orange-OpenSource/font-accessible-dfa">AccessibleDfa</a>, by Orange;</li>
<li><a href="https://github.com/Orange-OpenSource/font-accessible-dfa">AccessibleDfA</a>, by Orange;</li>

<li><a href="https://github.com/iaolo/iA-Fonts/tree/master/iA%20Writer%20Duospace">IA Writer Duospace</a>, by iA;</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/ReadiumCSS_docs/OEBPS/content.opf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<dc:language>en</dc:language>
<dc:identifier id="epub-id-1">urn:uuid:91cab77e-946f-4814-9e61-8494a5d5cb0f</dc:identifier>
<meta name="cover" content="cover_jpg"/>
<meta property="dcterms:modified">2018-04-01T12:09:20Z</meta>
<meta property="dcterms:modified">2018-05-02T12:52:57Z</meta>
<meta content="0.9.5" name="Sigil version"/>
</metadata>
<manifest>
Expand Down
2 changes: 1 addition & 1 deletion tests/a11y-font.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html style="--USER__fontOverride: readium-font-on; --USER__fontFamily: AccessibleDfa;">
<html style="--USER__fontOverride: readium-font-on; --USER__fontFamily: AccessibleDfA;">
<head>
<title>Test</title>
<meta charset="UTF-8" />
Expand Down