Skip to content

Commit

Permalink
subset ui fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
noureddin committed Nov 6, 2023
1 parent 1075bc2 commit 5e43a8e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,20 @@

/* The following two fonts are from: https://sourceforge.net/projects/arabeyes/files/Fonts/ */
/* They are under GNU GPL v2. Both are converted from TrueType to WOFF using */
/* the WOFFjs-based WOFFer at: https://andrewsun.com/tools/woffer-woff-font-converter/ */
/* and to WOFF2 using: https://everythingfonts.com/ttf-to-woff2 */
/* then both are subset and converted to WOFF & WOFF2 using glyphhanger */
@font-face {
font-family: KacstOne; /* version 5.0 */
font-style: normal;
font-weight: 400;
src: url('woff/KacstOne.woff2') format('woff2'),
url('woff/KacstOne.woff') format('woff');
src: url('woff/KacstOne-subset.woff2') format('woff2'),
url('woff/KacstOne-subset.woff') format('woff');
}
@font-face {
font-family: Cortoba; /* version 2.1 */
font-style: normal;
font-weight: 400;
src: url('woff/ae_Cortoba.woff2') format('woff2'),
url('woff/ae_Cortoba.woff') format('woff');
src: url('woff/ae_Cortoba-subset.woff2') format('woff2'),
url('woff/ae_Cortoba-subset.woff') format('woff');
}

/* general */
Expand Down Expand Up @@ -159,7 +158,7 @@
html { font-size: calc(16px + 0.5vw) }

* {
font-family: Cortoba;
font-family: Cortoba, serif;
font-size: inherit; /* some widgets default to another value */
}

Expand Down
13 changes: 6 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,20 @@

/* The following two fonts are from: https://sourceforge.net/projects/arabeyes/files/Fonts/ */
/* They are under GNU GPL v2. Both are converted from TrueType to WOFF using */
/* the WOFFjs-based WOFFer at: https://andrewsun.com/tools/woffer-woff-font-converter/ */
/* and to WOFF2 using: https://everythingfonts.com/ttf-to-woff2 */
/* then both are subset and converted to WOFF & WOFF2 using glyphhanger */
@font-face {
font-family: KacstOne; /* version 5.0 */
font-style: normal;
font-weight: 400;
src: url('woff/KacstOne.woff2') format('woff2'),
url('woff/KacstOne.woff') format('woff');
src: url('woff/KacstOne-subset.woff2') format('woff2'),
url('woff/KacstOne-subset.woff') format('woff');
}
@font-face {
font-family: Cortoba; /* version 2.1 */
font-style: normal;
font-weight: 400;
src: url('woff/ae_Cortoba.woff2') format('woff2'),
url('woff/ae_Cortoba.woff') format('woff');
src: url('woff/ae_Cortoba-subset.woff2') format('woff2'),
url('woff/ae_Cortoba-subset.woff') format('woff');
}

/* general */
Expand Down Expand Up @@ -139,7 +138,7 @@ body {
html { font-size: calc(16px + 0.5vw) }

* {
font-family: Cortoba;
font-family: Cortoba, serif;
font-size: inherit; /* some widgets default to another value */
}

Expand Down
Binary file added woff/KacstOne-subset.woff
Binary file not shown.
Binary file added woff/KacstOne-subset.woff2
Binary file not shown.
Binary file added woff/ae_Cortoba-subset.woff
Binary file not shown.
Binary file added woff/ae_Cortoba-subset.woff2
Binary file not shown.

0 comments on commit 5e43a8e

Please sign in to comment.