Versions in this module Expand all Collapse all v0 v0.1.0 Mar 8, 2026 Changes in this version + var FontFS embed.FS + func ClearLoadedFonts() + func Fonts() ([]string, error) + func LoadedFonts() []string + func PreloadFonts(names []FontName) error + func Text(text string, opts ...*FigletOptions) (string, error) + type BreakWordResult struct + type FigCharWithOverlap struct + type FigCharsWithOverlap struct + type FigletDefaults struct + FetchFontIfMissing bool + Font FontName + FontPath string + func Defaults(opts *FigletDefaults) FigletDefaults + type FigletFont struct + func NewFigletFont() *FigletFont + type FigletOptions struct + Font FontName + HorizontalLayout KerningMethods + PrintDirection PrintDirection + ShowHardBlanks bool + VerticalLayout KerningMethods + WhitespaceBreak bool + Width int + type FittingProperties string + const FitHLayout + const FitHRule1 + const FitHRule2 + const FitHRule3 + const FitHRule4 + const FitHRule5 + const FitHRule6 + const FitVLayout + const FitVRule1 + const FitVRule2 + const FitVRule3 + const FitVRule4 + const FitVRule5 + type FittingRules struct + HLayout int + HRule1 bool + HRule2 bool + HRule3 bool + HRule4 bool + HRule5 bool + HRule6 bool + VLayout int + VRule1 bool + VRule2 bool + VRule3 bool + VRule4 bool + VRule5 bool + type FontMetadata struct + Baseline int + CodeTagCount *int + FittingRules FittingRules + FullLayout *int + HardBlank string + Height int + MaxLength int + NumCommentLines int + OldLayout int + PrintDirection PrintDirection + func LoadFont(name string) (*FontMetadata, error) + func Metadata(name string) (*FontMetadata, string, error) + func ParseFont(name string, data string) (*FontMetadata, error) + type FontName string + type InternalOptions struct + ShowHardBlanks bool + WhitespaceBreak bool + Width int + type KerningMethods string + const KerningControlledSmushing + const KerningDefault + const KerningFitted + const KerningFull + const KerningUniversalSmushing + type PrintDirection int + const DefaultDirection + const LeftToRight + const RightToLeft