playground header, font scaling
This commit is contained in:
@@ -5,12 +5,30 @@ import (
|
||||
"image/color"
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultFontName konstructor.FontName = "ArcadeClassic"
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultDPI = 72
|
||||
)
|
||||
|
||||
func GetDefaultFontLayout() konstructor.FontLayout {
|
||||
return konstructor.FontLayout{
|
||||
Path: "assets/fonts/ArcadeClassic.ttf",
|
||||
DPI: 72,
|
||||
Path: konstructor.GetFontPath(DefaultFontName),
|
||||
DPI: DefaultDPI,
|
||||
Size: 24,
|
||||
Color: color.White,
|
||||
SelectedColor: color.RGBA{R: 255, G: 0, B: 0, A: 100},
|
||||
}
|
||||
}
|
||||
|
||||
func GetHeaderFontLayout() konstructor.FontLayout {
|
||||
return konstructor.FontLayout{
|
||||
Path: konstructor.GetFontPath(DefaultFontName),
|
||||
DPI: DefaultDPI,
|
||||
Size: 12,
|
||||
Color: color.White,
|
||||
SelectedColor: color.RGBA{R: 255, G: 0, B: 0, A: 100},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user