Documentation
¶
Index ¶
- func ApplyToChartStyle(style *chart.Style, fontType string)
- func GetDrawingColor(r, g, b uint8) drawing.Color
- func InitFromDocConfig(fontPath string, fontFile string, titleSize, normalSize, footnoteSize float64, ...) error
- func LoadFont(fontPath string, fontFile string) (*truetype.Font, error)
- type FontConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyToChartStyle ¶
ApplyToChartStyle aplica la configuración de fontbridge a los estilos de chart
func GetDrawingColor ¶
GetDrawingColor convierte RGBColor de docpdf a drawing.Color para chart
Types ¶
type FontConfig ¶
type FontConfig struct {
// Font es la fuente cargada desde TrueType
Font *truetype.Font
// Tamaños de fuente para diferentes elementos
TitleSize float64 // Para títulos de gráficos (Header1)
AxisLabelSize float64 // Para etiquetas de ejes (Normal)
ValueLabelSize float64 // Para etiquetas de valores (Normal)
LegendSize float64 // Para leyendas (Normal o Footnote)
// Colores
TitleColor drawing.Color
AxisLabelColor drawing.Color
ValueLabelColor drawing.Color
LegendColor drawing.Color
// Espaciado
LineSpacing float64
}
FontConfig contiene la configuración de fuente compartida entre docpdf y chart
Instancia global de configuración
Click to show internal directories.
Click to hide internal directories.