bitmap

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT, MIT Imports: 10 Imported by: 1

Documentation

Overview

Pacakge bitmap provides support for bitmap fonts found in .pcf files.

Index

Constants

View Source
const (
	COMPRESSED_METRICS = 0x00000100
)

Variables

View Source
var Loader fonts.FontLoader = loader{}

Functions

This section is empty.

Types

type Atom

type Atom string

type Font

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

func Parse

func Parse(file fonts.Resource) (*Font, error)

Parse parse a .pcf font file.

func (*Font) GetAdvance

func (f *Font) GetAdvance(index fonts.GID) (int32, error)

func (*Font) GetBDFProperty

func (f *Font) GetBDFProperty(s string) Property

GetBDFProperty return a property from a bitmap font, or nil if it is not found.

func (*Font) LoadMetrics

func (f *Font) LoadMetrics() fonts.FaceMetrics

TODO:

func (*Font) LoadSummary

func (f *Font) LoadSummary() (fonts.FontSummary, error)

func (*Font) PoscriptName

func (f *Font) PoscriptName() string

func (*Font) PostscriptInfo

func (f *Font) PostscriptInfo() (fonts.PSInfo, bool)

type Int

type Int int32

type Property

type Property interface {
	// contains filtered or unexported methods
}

Property is either an `Atom` or an `Int`

type Size

type Size struct {
	Height, Width int16

	XPpem, YPpem fixed.Int26_6
}

Jump to

Keyboard shortcuts

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