mirror of
https://github.com/seigler/aurebesh
synced 2025-07-25 08:46:12 +00:00
better default font
This commit is contained in:
parent
7184650f59
commit
bd73627be0
8 changed files with 18 additions and 24 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/fonts/FTAurebesh-Bold.otf
Normal file
BIN
public/fonts/FTAurebesh-Bold.otf
Normal file
Binary file not shown.
BIN
public/fonts/FTAurebesh-Medium.otf
Normal file
BIN
public/fonts/FTAurebesh-Medium.otf
Normal file
Binary file not shown.
|
@ -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,
|
||||
},
|
||||
|
@ -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(
|
||||
|
|
|
@ -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";
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue