Documentation
¶
Index ¶
- type CharMap
- type Context
- func (ctx *Context) FindRuneInstructions(r rune) (Instrs, error)
- func (ctx *Context) ReadBytes(start int64, l int64) ([]byte, error)
- func (ctx *Context) RenderRune(img draw.Image, r rune, fontSize int, pt image.Point, c color.Color) error
- func (ctx *Context) RenderText(img draw.Image, text string, fontSize int, pt image.Point, c color.Color)
- type Instrs
- type RuneRange
- type SerializerContext
- type StoreHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Reader io.ReadSeeker
// for investigation
Header StoreHeader
Width, Height int
BitmapListOffset, BitmapByteLength int64
CharMaps []CharMap
InstrsCache map[rune]Instrs
// config section
AdvanceWidth int
}
func (*Context) FindRuneInstructions ¶
func (*Context) RenderRune ¶
type SerializerContext ¶
type SerializerContext struct {
Writer io.Writer
Width, Height,
CharMapByteLength, BitmapByteLength int
CharMaps []CharMap
CurrCharMapIndex, CurrBitmapIndex int
}
func CreateSerializer ¶
func (*SerializerContext) NextCharMap ¶
func (ctx *SerializerContext) NextCharMap() bool
func (*SerializerContext) WriteBitmapImage ¶
func (ctx *SerializerContext) WriteBitmapImage(img image.Image) error
Click to show internal directories.
Click to hide internal directories.