Versions in this module Expand all Collapse all v0 v0.0.82 May 10, 2025 Changes in this version type Cell + TextStyle TextStyle type FontStyle + func (fs *FontStyle) SetGrayScale(grayScale float64) + func (fs FontStyle) GetGrayScale() float64 v0.0.81 May 10, 2025 Changes in this version + var ColorAqua = Color + var ColorBlack = Color + var ColorBlue = Color + var ColorFuchsia = Color + var ColorGreen = Color + var ColorLime = Color + var ColorMaroon = Color + var ColorNavy = Color + var ColorOlive = Color + var ColorPurple = Color + var ColorRed = Color + var ColorSilver = Color + var ColorTeal = Color + var ColorTransparent = Color + var ColorWhite = Color + var ColorYellow = Color + func ColorChannelFromFloat(v float64) uint8 + type Border struct + Bottom bool + Color Color + Left bool + Right bool + Top bool + Width float64 + type Cell struct + Border Border + FillColor Color + Font string + FontSize float64 + TextColor Color + func NewCell() *Cell + func (c *Cell) Equals(other *Cell) bool + type Color struct + A uint8 + B uint8 + G uint8 + R uint8 + func ColorFromAlphaMixedRGBA(r, g, b, a uint32) Color + func ColorFromHex(hex string) Color + func ColorFromKnown(known string) Color + func ColorFromRGB(rgb string) (output Color) + func ColorFromRGBA(rgba string) (output Color) + func ParseColor(rawColor string) Color + func (c Color) AverageWith(other Color) Color + func (c Color) Equals(other Color) bool + func (c Color) IsTransparent() bool + func (c Color) IsZero() bool + func (c Color) RGBA() (r, g, b, a uint32) + func (c Color) String() string + func (c Color) WithAlpha(a uint8) Color v0.0.80 May 10, 2025 Changes in this version + type FontStyle struct + func GetCompleteFont(styleStr string, size float64, color style.Color, family string) FontStyle + func GetFontStyle(fontStyleStr string) FontStyle + func NewFontStyle(name string, size float64, color ...style.Color) FontStyle + func (fs *FontStyle) SetColor(color style.Color) + func (fs *FontStyle) SetFamily(family string) + func (fs *FontStyle) SetIntStyle(intStyle int) + func (fs *FontStyle) SetName(name string) + func (fs *FontStyle) SetSize(size float64) + func (fs FontStyle) AndNot(other FontStyle) FontStyle + func (fs FontStyle) BitwiseAnd(other FontStyle) FontStyle + func (fs FontStyle) Equals(other FontStyle) bool + func (fs FontStyle) GetColor() style.Color + func (fs FontStyle) GetFamily() string + func (fs FontStyle) GetIntStyle() int + func (fs FontStyle) GetName() string + func (fs FontStyle) GetSize() float64 + func (fs FontStyle) WithColor(color style.Color) FontStyle + func (fs FontStyle) WithSize(size float64) FontStyle type TextStyle + func NewTextStyle(fontStyle FontStyle, lineSpacing float64, alignment Alignment, ...) TextStyle + func (ts *TextStyle) SetAlignment(alignment Alignment) + func (ts *TextStyle) SetFontStyle(fontStyle FontStyle) + func (ts *TextStyle) SetLineSpacing(lineSpacing float64) + func (ts *TextStyle) SetSpaceAfter(spaceAfter float64) + func (ts *TextStyle) SetSpaceBefore(spaceBefore float64) + func (ts TextStyle) GetAlignment() Alignment + func (ts TextStyle) GetFontStyle() FontStyle + func (ts TextStyle) GetLineSpacing() float64 + func (ts TextStyle) GetSpaceAfter() float64 + func (ts TextStyle) GetSpaceBefore() float64 v0.0.79 May 10, 2025 Changes in this version + const FontBold + const FontItalic + const FontRegular + const FontUnderline type TextStyle + FontStyle FontIntStyle type TextStyles + func DefaultTextConfig() TextStyles + func (ts *TextStyles) GetChartAxisLabel() TextStyle + func (ts *TextStyles) GetChartLabel() TextStyle + func (ts *TextStyles) GetFontFamily() FontFamily + func (ts *TextStyles) GetFootnote() TextStyle + func (ts *TextStyles) GetHeader1() TextStyle + func (ts *TextStyles) GetHeader2() TextStyle + func (ts *TextStyles) GetHeader3() TextStyle + func (ts *TextStyles) GetNormal() TextStyle + func (ts *TextStyles) GetPageFooter() TextStyle + func (ts *TextStyles) GetPageHeader() TextStyle + func (ts *TextStyles) LoadFonts(pdf pdfEngine) error + func (ts *TextStyles) SetChartAxisLabel(style TextStyle) + func (ts *TextStyles) SetChartLabel(style TextStyle) + func (ts *TextStyles) SetDefaultTextConfig(pdf pdfEngine) + func (ts *TextStyles) SetFontFamily(fontFamily FontFamily) + func (ts *TextStyles) SetFootnote(style TextStyle) + func (ts *TextStyles) SetHeader1(style TextStyle) + func (ts *TextStyles) SetHeader2(style TextStyle) + func (ts *TextStyles) SetHeader3(style TextStyle) + func (ts *TextStyles) SetNormal(style TextStyle) + func (ts *TextStyles) SetPageFooter(style TextStyle) + func (ts *TextStyles) SetPageHeader(style TextStyle) v0.0.78 May 8, 2025 Changes in this version + type Alignment int + const AllBorders + const Bottom + const Center + const Justify + const Left + const Middle + const Right + const Top + type FontFamily struct + Bold string + Italic string + Path string + Regular string + Underline string + type FontIntStyle int + const FontStyleBold + const FontStyleItalic + const FontStyleRegular + const FontStyleUnderline + func GetFontStyleInIntFormat(fontStyle string) (style FontIntStyle) + type TextStyle struct + Alignment Alignment + Color style.Color + LineSpacing float64 + Size float64 + SpaceAfter float64 + SpaceBefore float64 + type TextStyles struct + ChartAxisLabel TextStyle + ChartLabel TextStyle + FontFamily FontFamily + Footnote TextStyle + Header1 TextStyle + Header2 TextStyle + Header3 TextStyle + Normal TextStyle + PageFooter TextStyle + PageHeader TextStyle + func DefaultTextStyles() TextStyles