asset

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultUIFontPath = "/usr/share/fonts/WenQuanYi Micro Hei.ttf"

Functions

func GetDefaultFontFace

func GetDefaultFontFace(size float64) (font.Face, error)

func GetFontFace

func GetFontFace(ft *opentype.Font, size float64) (font.Face, error)

func LoadDefaultFont

func LoadDefaultFont() (*opentype.Font, error)

func LoadFont

func LoadFont(path string, orDefault bool) (*opentype.Font, error)

func LoadFontFS

func LoadFontFS(path string) (*opentype.Font, error)

LoadFontFS loads a font from the embedded filesystem.

func LoadImage

func LoadImage(path string) (image.Image, error)

Simple icon loading util

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL