FontParams
Define font properties
type FontParams struct {
Italic bool
LineHeight SizeUnit
SmallCaps bool
Weight int
}
Member | Type | Description |
---|---|---|
Italic | bool |
If true then a font is italic |
LineHeight | SizeUnit |
Height (relative to the font size of the element itself) of a line box |
SmallCaps | bool |
If true then a font uses small-caps glyphs |
Weight | int |
Font weight. Valid values: 0 ...9 , where 0 - a weight does not specify; 1 - a minimal weight; 4 - a normal weight; 7 - a bold weight; 9 - a maximal weight |