feat(frontend): FiraCode as a default font as well as more fonts
This commit is contained in:
parent
bf1e867040
commit
dba75dde1b
BIN
frontend/assets/fonts/FiraMono/FiraMono-Bold.ttf
Normal file
BIN
frontend/assets/fonts/FiraMono/FiraMono-Bold.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/FiraMono/FiraMono-Medium.ttf
Normal file
BIN
frontend/assets/fonts/FiraMono/FiraMono-Medium.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/FiraMono/FiraMono-Regular.ttf
Normal file
BIN
frontend/assets/fonts/FiraMono/FiraMono-Regular.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/VictorMono/VictorMono-Bold.ttf
Normal file
BIN
frontend/assets/fonts/VictorMono/VictorMono-Bold.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/VictorMono/VictorMono-ExtraLight.ttf
Normal file
BIN
frontend/assets/fonts/VictorMono/VictorMono-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/VictorMono/VictorMono-Light.ttf
Normal file
BIN
frontend/assets/fonts/VictorMono/VictorMono-Light.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/VictorMono/VictorMono-Medium.ttf
Normal file
BIN
frontend/assets/fonts/VictorMono/VictorMono-Medium.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/VictorMono/VictorMono-Regular.ttf
Normal file
BIN
frontend/assets/fonts/VictorMono/VictorMono-Regular.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/VictorMono/VictorMono-SemiBold.ttf
Normal file
BIN
frontend/assets/fonts/VictorMono/VictorMono-SemiBold.ttf
Normal file
Binary file not shown.
BIN
frontend/assets/fonts/VictorMono/VictorMono-Thin.ttf
Normal file
BIN
frontend/assets/fonts/VictorMono/VictorMono-Thin.ttf
Normal file
Binary file not shown.
|
@ -5,9 +5,33 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
//go:embed iosevka-bold.ttf
|
// Iosevka
|
||||||
|
//go:embed Iosevka/iosevka-bold.ttf
|
||||||
IosevkaBold_ttf []byte
|
IosevkaBold_ttf []byte
|
||||||
|
//go:embed Iosevka/iosevka-regular.ttf
|
||||||
//go:embed iosevka-regular.ttf
|
|
||||||
IosevkaRegular_ttf []byte
|
IosevkaRegular_ttf []byte
|
||||||
|
|
||||||
|
/// FiraCode
|
||||||
|
//go:embed FiraMono/FiraMono-Bold.ttf
|
||||||
|
FiraBold_ttf []byte
|
||||||
|
//go:embed FiraMono/FiraMono-Medium.ttf
|
||||||
|
FiraMedium_ttf []byte
|
||||||
|
//go:embed FiraMono/FiraMono-Regular.ttf
|
||||||
|
FiraRegular_ttf []byte
|
||||||
|
|
||||||
|
/// Victor Mono
|
||||||
|
//go:embed VictorMono/VictorMono-ExtraLight.ttf
|
||||||
|
VictorExtraLight_ttf []byte
|
||||||
|
//go:embed VictorMono/VictorMono-Thin.ttf
|
||||||
|
VictorThin_ttf []byte
|
||||||
|
//go:embed VictorMono/VictorMono-Light.ttf
|
||||||
|
VictorLight_ttf []byte
|
||||||
|
//go:embed VictorMono/VictorMono-Regular.ttf
|
||||||
|
VictorRegular_ttf []byte
|
||||||
|
//go:embed VictorMono/VictorMono-Medium.ttf
|
||||||
|
VictorMedium_ttf []byte
|
||||||
|
//go:embed VictorMono/VictorMono-SemiBold.ttf
|
||||||
|
VictorSemiBold_ttf []byte
|
||||||
|
//go:embed VictorMono/VictorMono-Bold.ttf
|
||||||
|
VictorBold_ttf []byte
|
||||||
)
|
)
|
||||||
|
|
|
@ -75,8 +75,8 @@ func UiInit(width, height int) UI {
|
||||||
)
|
)
|
||||||
|
|
||||||
// Make the different faces
|
// Make the different faces
|
||||||
headingFace, _ := makeFace(18, fonts.IosevkaBold_ttf)
|
headingFace, _ := makeFace(18, fonts.FiraBold_ttf)
|
||||||
defaultFace, _ := makeFace(14, fonts.IosevkaRegular_ttf)
|
defaultFace, _ := makeFace(14, fonts.FiraRegular_ttf)
|
||||||
|
|
||||||
// Create the 'Profile' tab
|
// Create the 'Profile' tab
|
||||||
tabProfile := widget.NewTabBookTab("Profile",
|
tabProfile := widget.NewTabBookTab("Profile",
|
||||||
|
|
Reference in a new issue