Skip to content

Commit

Permalink
better default font
Browse files Browse the repository at this point in the history
  • Loading branch information
seigler committed Apr 12, 2024
1 parent 7184650 commit bd73627
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 24 deletions.
Binary file removed public/fonts/AurebeshAF-Canon.otf
Binary file not shown.
Binary file removed public/fonts/AurebeshAF-CanonTech.otf
Binary file not shown.
Binary file removed public/fonts/AurebeshAF-Legends.otf
Binary file not shown.
Binary file removed public/fonts/AurebeshAF-LegendsTech.otf
Binary file not shown.
Binary file added public/fonts/FTAurebesh-Bold.otf
Binary file not shown.
Binary file added public/fonts/FTAurebesh-Medium.otf
Binary file not shown.
14 changes: 3 additions & 11 deletions src/components/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@ export const fonts: Record<
ligatures: ["ch", "sh", "th", "ae", "eo", "kh", "ng", "oo"],
lowercase: false,
},
"AurebeshAF-Canon": {
"FT Aurebesh": {
ligatures: [],
lowercase: false,
},
"AurebeshAF-CanonTech": {
ligatures: [],
lowercase: false,
},
"AurebeshAF-Legends": {
ligatures: ["ch", "sh", "th", "ae", "eo", "kh", "ng", "oo"],
lowercase: false,
},
"AurebeshAF-LegendsTech": {
"FT Aurebesh ligatures": {
ligatures: ["ch", "sh", "th", "ae", "eo", "kh", "ng", "oo"],
lowercase: false,
},
Expand Down Expand Up @@ -56,7 +48,7 @@ export const fonts: Record<

export const fontNames = Object.keys(fonts);

export const selectedFont = signal("AurebeshAF-Canon");
export const selectedFont = signal("FT Aurebesh");
effect(() => {
if (typeof window !== "undefined") {
document.documentElement.style.setProperty(
Expand Down
28 changes: 15 additions & 13 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@
src: url(/fonts/AB-Equinox.otf) format("opentype");
}
@font-face {
font-family: "AurebeshAF-Canon";
src: url(/fonts/AurebeshAF-Canon.otf) format("opentype");
size-adjust: 80%;
font-family: "FT Aurebesh ligatures";
src: url(/fonts/FTAurebesh-Medium.otf) format("opentype");
font-feature-settings: "dlig" on;
font-weight: 500;
}
@font-face {
font-family: "AurebeshAF-CanonTech";
src: url(/fonts/AurebeshAF-CanonTech.otf) format("opentype");
size-adjust: 80%;
font-family: "FT Aurebesh ligatures";
src: url(/fonts/FTAurebesh-Bold.otf) format("opentype");
font-feature-settings: "dlig" on;
font-weight: 700;
}
@font-face {
font-family: "AurebeshAF-Legends";
src: url(/fonts/AurebeshAF-Legends.otf) format("opentype");
size-adjust: 80%;
font-family: "FT Aurebesh";
src: url(/fonts/FTAurebesh-Medium.otf) format("opentype");
font-weight: 500;
}
@font-face {
font-family: "AurebeshAF-LegendsTech";
src: url(/fonts/AurebeshAF-LegendsTech.otf) format("opentype");
size-adjust: 80%;
font-family: "FT Aurebesh";
src: url(/fonts/FTAurebesh-Bold.otf) format("opentype");
font-weight: 700;
}
@font-face {
font-family: "Aurebesh_Rodian";
Expand Down Expand Up @@ -130,7 +132,7 @@ h1 {
}

.aurebesh {
font-size: clamp(1.2rem, 3vw, 1.5rem);
font-size: clamp(1.5em, 3vw, 1.5em);
font-family: var(--font-aurebesh);
}

Expand Down

0 comments on commit bd73627

Please sign in to comment.