Documentation ¶
Index ¶
- type Font
- func Courier() Font
- func CourierBold() Font
- func CourierBoldOblique() Font
- func CourierOblique() Font
- func Google(fontName string) *Font
- func GoogleFontWithWeight(fontName string, weight int, italic bool) *Font
- func Helvetica() Font
- func HelveticaBold() Font
- func HelveticaBoldOblique() Font
- func HelveticaOblique() Font
- func NewFont() *Font
- func NewFontResource(path string, resourceName string) *Font
- func Symbol() Font
- func TimesBold() Font
- func TimesBoldItalic() Font
- func TimesItalic() Font
- func TimesRoman() Font
- func ZapfDingbats() Font
- type FontInformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct { Resource resource.Resource `json:"-"` ResourceName string `json:"resourceName,omitempty"` Embed bool `json:"embed,omitempty"` Subset bool `json:"subset,omitempty"` Name string `json:"name,omitempty"` }
Represents font.
func Courier ¶ added in v1.0.2
func Courier() Font
Gets the Courier core font with Latin 1 encoding.
func CourierBold ¶ added in v1.0.2
func CourierBold() Font
Gets the Courier Bold core font with Latin 1 encoding.
func CourierBoldOblique ¶ added in v1.0.2
func CourierBoldOblique() Font
Gets the Courier Bold Oblique core font with Latin 1 encoding.
func CourierOblique ¶ added in v1.0.2
func CourierOblique() Font
Gets the Courier Oblique core font with Latin 1 encoding.
func GoogleFontWithWeight ¶ added in v1.1.0
func Helvetica ¶ added in v1.0.2
func Helvetica() Font
Gets the Helvetica core font with Latin 1 encoding.
func HelveticaBold ¶ added in v1.0.2
func HelveticaBold() Font
Gets the Helvetica Bold core font with Latin 1 encoding.
func HelveticaBoldOblique ¶ added in v1.0.2
func HelveticaBoldOblique() Font
* Gets the Helvetica Bold Oblique core font with Latin 1 encoding.
func HelveticaOblique ¶ added in v1.0.2
func HelveticaOblique() Font
Gets the Helvetica Oblique core font with Latin 1 encoding.
func NewFontResource ¶ added in v1.0.2
NewFontResource initializes a new Font with given font file provided with path.
func TimesBold ¶ added in v1.0.2
func TimesBold() Font
Gets the Times Bold core font with Latin 1 encoding.
func TimesBoldItalic ¶ added in v1.0.2
func TimesBoldItalic() Font
Gets the Times Bold Italic core font with Latin 1 encoding.
func TimesItalic ¶ added in v1.0.2
func TimesItalic() Font
Gets the Times Italic core font with Latin 1 encoding.
func TimesRoman ¶ added in v1.0.2
func TimesRoman() Font
Gets the Times Roman core font with Latin 1 encoding.
type FontInformation ¶
func NewFontInformation ¶
func NewFontInformation() *FontInformation
func (*FontInformation) FilePath ¶
func (p *FontInformation) FilePath() string
func (*FontInformation) FontName ¶
func (p *FontInformation) FontName() string