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

Unable to change color with CSS on webpage #66

Open
Polarisation opened this issue Jul 22, 2021 · 2 comments
Open

Unable to change color with CSS on webpage #66

Polarisation opened this issue Jul 22, 2021 · 2 comments

Comments

@Polarisation
Copy link

Describe the bug
Using the fonts from this repo, I am unable to change color via a color: CSS rule when using on a webpage. The font color is always black. This is the case whether I use the .woff or .woff2 files from this repo with @font-face, or the .otf installed locally.

To Reproduce

@font-face {
    font-family: "OpenDyslexic";
    src: url("/assets/fonts/OpenDyslexic-Regular.woff2") format("woff2"),
      url("/assets/fonts/OpenDyslexic-Regular.woff") format("woff");
}

* {
    font-family: "OpenDyslexic", sans-serif;
   color: #fff; /* should be white but is black */
}

Expected behavior
Expected to be able to change font color.

On opendyslexic.org the font is shown in different colors. It uses a different font file, a .ttf which is not included in this repo.

Desktop (please complete the following information):

  • OS: Mac OS 10.15.7
  • Browser: Chrome or Firefox
  • Version: latest
@Polarisation Polarisation changed the title Unable to change color on Unable to change color with CSS on webpage Jul 22, 2021
@matiastucci
Copy link

matiastucci commented Feb 5, 2022

@Polarisation did you find a solution for this? I'm having the same issue.

FYI I found a hacky way:

color: transparent;
text-shadow: 0 0 0 red;

@Polarisation
Copy link
Author

No but there's some older versions of OpenDyslexic floating around the internet which work. I found a .ttf which worked for me... maybe one of these: https://fontlibrary.org/en/font/opendyslexic

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

No branches or pull requests

2 participants