Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dyslexic font support #6962

Open
C00kie- opened this issue Jul 8, 2023 · 6 comments
Open

Dyslexic font support #6962

C00kie- opened this issue Jul 8, 2023 · 6 comments

Comments

@C00kie-
Copy link

C00kie- commented Jul 8, 2023

Problem

I wish to use the notebook (and the lab) with dyslexic font.

Proposed Solution

Dyslexic font support integrated to notebook.

Additional context

Even if dyslexic fonts add-on aren't great for security reasons, in this case they can not access the text inside the notebook.

Thanks!

@C00kie- C00kie- added enhancement status:Needs Triage Applied to issues that need triage labels Jul 8, 2023
@RRosio RRosio added tag:Accessibility and removed status:Needs Triage Applied to issues that need triage labels Jul 11, 2023
@JasonWeill
Copy link
Collaborator

The font in question: https://opendyslexic.org/

@RRosio
Copy link
Collaborator

RRosio commented Jul 11, 2023

Thank you for submitting this issue @C00kie-! This might be something that could be integrated in a theme.

@C00kie-
Copy link
Author

C00kie- commented Jul 11, 2023

Thanks,
I look forward to it :)

@C00kie- C00kie- closed this as completed Jul 11, 2023
@JasonWeill JasonWeill reopened this Jul 11, 2023
@JasonWeill
Copy link
Collaborator

Leaving this open; we don't currently embed fonts with Jupyter Notebook, so this would require some development effort.

@trallard
Copy link
Member

Thanks for taking the time to bring this suggestion @C00kie-

Some of the Quansight and Jupyter accessibility team folks have been working on an extension containing themes with WCAG conformant colour contrast and using the Atkinson Hyperlegible Typeface by default.
Such font is also dyslexic and readability focused.
We are planning to have our first stable release in the upcoming weeks https://github.com/Quansight-Labs/jupyterlab-accessible-themes

This might be a good starting point to gather feedback, identify other usability needs, and define which of such settings or features should be in the core of Notebook/JupyterLab and plan for that development and potentially design effort.

@tonyfast
Copy link
Collaborator

this might be a heavy opinion to bring into to the core of jupyter. there is inconclusive evidence that dyslexic fonts improve the readability of a document. 1 while, i don't agree about adding specific font; i do believe in configurability. jupyterlab-fonts addressed this for v3 lab. we should be able to do this better with this new command palette

studies of speed and accuracy 23 of dyslexic font usage indicated that features like background color, serifs, text spacing and line spacing can have great impact on readability than font family. these are controls we find in firefox's native reader application (see figure). gains might be made by exposing these text settings more prominently in the notebook configuration.

image

firefox reader's native text configuration that modify serifs, whitespace, color and size.

i'd imagine that dyslexic users who customize their system fonts to suit their needs would prefer seeing those, overriding font defaults could be a regression for accessibility power users. folks should be able choose a preferred custom font as a fallback though. webaim mentions there is not one typeface that will be optimal for all users with dyslexia. which would encourage configurable fonts to suit needs, maybe even suggestions or help to facilitate choice.

css customization is one of my favorite jupyter features. we can actually override the jupyter font with a dyslexic font using the following cell magic

%%html
<style>
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible&display=swap');
:root {
    --jp-ui-font-family: 'Atkinson Hyperlegible', sans-serif;
    --jp-code-font-family: 'Atkinson Hyperlegible', sans-serif;
}
</style> 

image

the jupyterlab interface with atkinson hyperlegible as the font face.

Footnotes

  1. i like atkinson hyperlegible. its a good work-horse.

  2. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5934461/ "Dyslexie font does not benefit reading in children with or without dyslexia"

  3. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5629233/ "The effect of a specialized dyslexia font, OpenDyslexic, on reading rate and accuracy"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants