d2fontglyph

package
v0.0.0-...-7f92c57 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Overview

Package d2fontglyph represents a single font glyph

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FontGlyph

type FontGlyph struct {
	// contains filtered or unexported fields
}

FontGlyph represents a single font glyph

func Create

func Create(frame, width, height int) *FontGlyph

Create creates a new font glyph

func (*FontGlyph) FrameIndex

func (fg *FontGlyph) FrameIndex() int

FrameIndex returns glyph's frame

func (*FontGlyph) Height

func (fg *FontGlyph) Height() int

Height returns glyph's height

func (*FontGlyph) SetFrameIndex

func (fg *FontGlyph) SetFrameIndex(idx int)

SetFrameIndex sets frame index to idx

func (*FontGlyph) SetSize

func (fg *FontGlyph) SetSize(w, h int)

SetSize sets glyph's size to w, h

func (*FontGlyph) Size

func (fg *FontGlyph) Size() (w, h int)

Size returns glyph's size

func (*FontGlyph) Unknown1

func (fg *FontGlyph) Unknown1() []byte

Unknown1 returns unknowns bytes

func (*FontGlyph) Unknown2

func (fg *FontGlyph) Unknown2() []byte

Unknown2 returns unknowns bytes

func (*FontGlyph) Unknown3

func (fg *FontGlyph) Unknown3() []byte

Unknown3 returns unknowns bytes

func (*FontGlyph) Width

func (fg *FontGlyph) Width() int

Width returns font width

Jump to

Keyboard shortcuts

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