Documentation
¶
Overview ¶
Package draw use a backend and a layout object to draw glyphs on the ouput.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Output backend.Canvas // where to draw the text Fonts *text.FontConfiguration // used to find fonts }
func (Context) CreateFirstLine ¶
func (ctx Context) CreateFirstLine(layout *text.TextLayout, style pr.StyleAccessor, textOverflow string, blockEllipsis pr.TaggedString, x, y, angle pr.Fl, ) backend.TextDrawing
CreateFirstLine create the text for the first line of `layout` starting at position `(x,y)`. It also register the font used.
Click to show internal directories.
Click to hide internal directories.