Versions in this module Expand all Collapse all v0 v0.3.3 Jun 20, 2022 v0.3.2 Jun 4, 2022 Changes in this version + const BoldStyle + const DashedLine + const DottedLine + const ItalicStyle + const NormalStyle + const SolidLine + const UnderlineStyle + type Doc struct + func NewDoc(fontSize int, lineSpread float64) (*Doc, error) + func (d *Doc) AddFormattedMultilineText(x, y float64, content string, size int, style string) + func (d *Doc) AddFormattedText(x, y float64, content string, size int, style string) + func (d *Doc) AddFormattedWrapText(x1, y, x2 float64, content string, size int, style string) + func (d *Doc) AddLine(x1, y1, x2, y2, width float64, lineStyle LineStyle) + func (d *Doc) AddMultilineText(x, y float64, content string) + func (d *Doc) AddSizedText(x, y float64, content string, size int) + func (d *Doc) AddText(x, y float64, content string) error + func (d *Doc) AddWrapText(x1, y, x2 float64, content string) + func (d *Doc) DefaultFontSize() + func (d *Doc) DefaultFontStyle() + func (d *Doc) SetFontFamily(family fonts.FontFamily) error + func (d *Doc) SetFontSize(size int) error + func (d *Doc) SetFontStyle(style string) error + func (d *Doc) SetPosition(x, y float64) + func (d Doc) DefaultLineHeight() float64 + func (d Doc) LineHeight(fontSize int) float64 + type FontStyle int + type LineStyle string