mirror of
https://github.com/seigler/aurebesh
synced 2025-07-26 01:06: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"],
|
ligatures: ["ch", "sh", "th", "ae", "eo", "kh", "ng", "oo"],
|
||||||
lowercase: false,
|
lowercase: false,
|
||||||
},
|
},
|
||||||
"AurebeshAF-Canon": {
|
"FT Aurebesh": {
|
||||||
ligatures: [],
|
ligatures: [],
|
||||||
lowercase: false,
|
lowercase: false,
|
||||||
},
|
},
|
||||||
"AurebeshAF-CanonTech": {
|
"FT Aurebesh ligatures": {
|
||||||
ligatures: [],
|
|
||||||
lowercase: false,
|
|
||||||
},
|
|
||||||
"AurebeshAF-Legends": {
|
|
||||||
ligatures: ["ch", "sh", "th", "ae", "eo", "kh", "ng", "oo"],
|
|
||||||
lowercase: false,
|
|
||||||
},
|
|
||||||
"AurebeshAF-LegendsTech": {
|
|
||||||
ligatures: ["ch", "sh", "th", "ae", "eo", "kh", "ng", "oo"],
|
ligatures: ["ch", "sh", "th", "ae", "eo", "kh", "ng", "oo"],
|
||||||
lowercase: false,
|
lowercase: false,
|
||||||
},
|
},
|
||||||
|
@ -56,7 +48,7 @@ export const fonts: Record<
|
||||||
|
|
||||||
export const fontNames = Object.keys(fonts);
|
export const fontNames = Object.keys(fonts);
|
||||||
|
|
||||||
export const selectedFont = signal("AurebeshAF-Canon");
|
export const selectedFont = signal("FT Aurebesh");
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
document.documentElement.style.setProperty(
|
document.documentElement.style.setProperty(
|
||||||
|
|
|
@ -3,24 +3,26 @@
|
||||||
src: url(/fonts/AB-Equinox.otf) format("opentype");
|
src: url(/fonts/AB-Equinox.otf) format("opentype");
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "AurebeshAF-Canon";
|
font-family: "FT Aurebesh ligatures";
|
||||||
src: url(/fonts/AurebeshAF-Canon.otf) format("opentype");
|
src: url(/fonts/FTAurebesh-Medium.otf) format("opentype");
|
||||||
size-adjust: 80%;
|
font-feature-settings: "dlig" on;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "AurebeshAF-CanonTech";
|
font-family: "FT Aurebesh ligatures";
|
||||||
src: url(/fonts/AurebeshAF-CanonTech.otf) format("opentype");
|
src: url(/fonts/FTAurebesh-Bold.otf) format("opentype");
|
||||||
size-adjust: 80%;
|
font-feature-settings: "dlig" on;
|
||||||
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "AurebeshAF-Legends";
|
font-family: "FT Aurebesh";
|
||||||
src: url(/fonts/AurebeshAF-Legends.otf) format("opentype");
|
src: url(/fonts/FTAurebesh-Medium.otf) format("opentype");
|
||||||
size-adjust: 80%;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "AurebeshAF-LegendsTech";
|
font-family: "FT Aurebesh";
|
||||||
src: url(/fonts/AurebeshAF-LegendsTech.otf) format("opentype");
|
src: url(/fonts/FTAurebesh-Bold.otf) format("opentype");
|
||||||
size-adjust: 80%;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Aurebesh_Rodian";
|
font-family: "Aurebesh_Rodian";
|
||||||
|
@ -130,7 +132,7 @@ h1 {
|
||||||
}
|
}
|
||||||
|
|
||||||
.aurebesh {
|
.aurebesh {
|
||||||
font-size: clamp(1.2rem, 3vw, 1.5rem);
|
font-size: clamp(1.5em, 3vw, 1.5em);
|
||||||
font-family: var(--font-aurebesh);
|
font-family: var(--font-aurebesh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue