bitmap

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryImage

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

func NewBinaryImage

func NewBinaryImage(bits []byte, width, height int) *BinaryImage

func (*BinaryImage) At

func (b *BinaryImage) At(i, j int) color.Color

func (*BinaryImage) Bounds

func (b *BinaryImage) Bounds() image.Rectangle

func (*BinaryImage) ColorModel

func (b *BinaryImage) ColorModel() color.Model

func (*BinaryImage) SubImage

func (b *BinaryImage) SubImage(r image.Rectangle) image.Image

type Face

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

func NewFace

func NewFace(image *BinaryImage, dotX, dotY fixed.Int26_6, eastAsiaWide bool) *Face

func (*Face) Close

func (f *Face) Close() error

func (*Face) Glyph

func (f *Face) Glyph(dot fixed.Point26_6, r rune) (dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool)

func (*Face) GlyphAdvance

func (f *Face) GlyphAdvance(r rune) (advance fixed.Int26_6, ok bool)

func (*Face) GlyphBounds

func (f *Face) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool)

func (*Face) Kern

func (f *Face) Kern(r0, r1 rune) fixed.Int26_6

func (*Face) Metrics

func (f *Face) Metrics() font.Metrics

Jump to

Keyboard shortcuts

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