Skip to content

Commit

Permalink
Add opendyslexic font (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
munshkr authored Dec 8, 2024
2 parents bcc4edb + b1818d3 commit 39a05e5
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
88 changes: 88 additions & 0 deletions packages/web/src/assets/fonts/OpenDyslexic/stylesheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
@font-face {
font-family: "OpenDyslexic";
font-style: normal;
font-weight: 400;
src:
local("OpenDyslexic"),
url("OpenDyslexic-Regular.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexic";
font-style: italic;
font-weight: 400;
src:
local("OpenDyslexic"),
url("OpenDyslexic-Italic.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexic";
font-style: normal;
font-weight: 700;
src:
local("OpenDyslexic"),
url("OpenDyslexic-Bold.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexic";
font-style: italic;
font-weight: 700;
src:
local("OpenDyslexic"),
url("OpenDyslexic-BoldItalic.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexic3";
font-style: normal;
font-weight: 400;
src:
local("OpenDyslexic3"),
url("OpenDyslexic3-Regular.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexicAlta";
font-style: normal;
font-weight: 400;
src:
local("OpenDyslexicAlta"),
url("OpenDyslexicAlta-Regular.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexicMono";
font-style: normal;
font-weight: 400;
src:
local("OpenDyslexicMono"),
url("OpenDyslexicMono-Regular.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexicAlta";
font-style: italic;
font-weight: 400;
src:
local("OpenDyslexicAlta"),
url("OpenDyslexicAlta-Italic.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexic3";
font-style: normal;
font-weight: 700;
src:
local("OpenDyslexic3"),
url("OpenDyslexic3-Bold.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexicAlta";
font-style: normal;
font-weight: 700;
src:
local("OpenDyslexicAlta"),
url("OpenDyslexicAlta-Bold.woff") format("woff");
}
@font-face {
font-family: "OpenDyslexicAlta";
font-style: italic;
font-weight: 700;
src:
local("OpenDyslexicAlta"),
url("OpenDyslexicAlta-BoldItalic.woff") format("woff");
}
1 change: 1 addition & 0 deletions packages/web/src/components/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import "../assets/fonts/SyneMono/stylesheet.css";
import "../assets/fonts/VT323/stylesheet.css";
import "../assets/fonts/RobotoMono/stylesheet.css";
import "../assets/fonts/UbuntuMono/stylesheet.css";
import "../assets/fonts/OpenDyslexic/stylesheet.css";

import { useQuery } from "@/hooks/use-query";
import {
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/lib/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const fonts = {
"JGS": "jgs_Font",
"Monaco": "Monaco",
"MonoCraft": "Monocraft Nerd Font",
"OpenDyslexic" : "OpenDyslexicMono",
"Roboto Mono" : "Roboto Mono",
"Steps Mono": "Steps Mono",
"Syne Mono" : "Syne Mono",
Expand Down

0 comments on commit 39a05e5

Please sign in to comment.