Documentation
¶
Index ¶
- type Context
- type FillRule
- type Gradient
- type LineCap
- type LineJoin
- type Pattern
- type TextFont
- func (_bbc *TextFont) BytesToCharcodes(data []byte) []_e.CharCode
- func (_dad *TextFont) CharcodeToRunes(charcode _e.CharCode) (_e.CharCode, []rune)
- func (_dcb *TextFont) GetCharMetrics(code _e.CharCode) (float64, float64, bool)
- func (_dfc *TextFont) NewFace(size float64) _gg.Face
- func (_dbd *TextFont) WithSize(size float64, originalFont *_ba.PdfFont) *TextFont
- type TextRenderingMode
- type TextState
- func (_gadf *TextState) ProcDQ(data []byte, aw, ac float64, ctx Context)
- func (_ffg *TextState) ProcQ(data []byte, ctx Context)
- func (_dcbb *TextState) ProcTD(tx, ty float64)
- func (_gab *TextState) ProcTStar()
- func (_cdac *TextState) ProcTd(tx, ty float64)
- func (_gfa *TextState) ProcTf(font *TextFont)
- func (_gag *TextState) ProcTj(data []byte, ctx Context)
- func (_aec *TextState) ProcTm(a, b, c, d, e, f float64)
- func (_bfc *TextState) Reset()
- func (_aeed *TextState) Translate(tx, ty float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface {
Push()
Pop()
Matrix() _ae.Matrix
SetMatrix(_ce _ae.Matrix)
Translate(_cb, _af float64)
Scale(_ef, _bf float64)
Rotate(_gf float64)
MoveTo(_dc, _ca float64)
LineTo(_cef, _cd float64)
CubicTo(_df, _ea, _dg, _ggc, _eb, _afa float64)
QuadraticTo(_ga, _fe, _fg, _fec float64)
NewSubPath()
ClosePath()
ClearPath()
Clip()
ClipPreserve()
ResetClip()
LineWidth() float64
SetLineWidth(_bd float64)
SetLineCap(_ge LineCap)
SetLineJoin(_cda LineJoin)
SetDash(_aee ...float64)
SetDashOffset(_fd float64)
Fill()
FillPreserve()
Stroke()
StrokePreserve()
SetRGBA(_fgf, _cg, _gad, _aef float64)
SetFillRGBA(_fb, _fda, _cc, _fbe float64)
SetFillStyle(_eag Pattern)
SetFillRule(_ccc FillRule)
SetStrokeRGBA(_bg, _fbf, _eda, _fge float64)
SetStrokeStyle(_be Pattern)
FillPattern() Pattern
StrokePattern() Pattern
TextState() *TextState
DrawString(_eg string, _bb _gg.Face, _cdaf, _aa float64)
MeasureString(_feg string, _ff _gg.Face) (_aab, _cde float64)
DrawRectangle(_fbc, _db, _dba, _fa float64)
DrawImage(_bed _d.Image, _eff, _cdd int)
DrawImageAnchored(_baa _d.Image, _fdb, _ee int, _gea, _fag float64)
Height() int
Width() int
}
type TextFont ¶
func NewTextFontFromPath ¶
func (*TextFont) BytesToCharcodes ¶
func (*TextFont) CharcodeToRunes ¶
func (*TextFont) GetCharMetrics ¶
type TextRenderingMode ¶
type TextRenderingMode int
const ( TextRenderingModeFill TextRenderingMode = iota TextRenderingModeStroke TextRenderingModeFillStroke TextRenderingModeInvisible TextRenderingModeFillClip TextRenderingModeStrokeClip TextRenderingModeFillStrokeClip TextRenderingModeClip )
Click to show internal directories.
Click to hide internal directories.