hsfont

package
v0.0.0-...-667d129 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hsfont contains data for font file types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Font

type Font struct {
	TableFile   string
	SpriteFile  string
	PaletteFile string
	// contains filtered or unexported fields
}

Font represents font

func LoadFromJSON

func LoadFromJSON(data []byte) (*Font, error)

LoadFromJSON loads a new font from json

func NewFile

func NewFile(filePath string) (*Font, error)

NewFile creates a new font

func (*Font) JSON

func (f *Font) JSON() ([]byte, error)

JSON exports font to json

func (*Font) SaveToFile

func (f *Font) SaveToFile() error

SaveToFile saves font

Jump to

Keyboard shortcuts

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