feat(frontend): FiraCode as a default font as well as more fonts

This commit is contained in:
Muhammad Nauman Raza 2023-07-27 20:42:48 +01:00
parent bf1e867040
commit dba75dde1b
14 changed files with 29 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -5,9 +5,33 @@ import (
)
var (
//go:embed iosevka-bold.ttf
// Iosevka
//go:embed Iosevka/iosevka-bold.ttf
IosevkaBold_ttf []byte
//go:embed iosevka-regular.ttf
//go:embed Iosevka/iosevka-regular.ttf
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
)

View file

@ -75,8 +75,8 @@ func UiInit(width, height int) UI {
)
// Make the different faces
headingFace, _ := makeFace(18, fonts.IosevkaBold_ttf)
defaultFace, _ := makeFace(14, fonts.IosevkaRegular_ttf)
headingFace, _ := makeFace(18, fonts.FiraBold_ttf)
defaultFace, _ := makeFace(14, fonts.FiraRegular_ttf)
// Create the 'Profile' tab
tabProfile := widget.NewTabBookTab("Profile",