Documentation
¶
Index ¶
- type Font
- func Courier() Font
- func CourierBold() Font
- func CourierBoldOblique() Font
- func CourierOblique() Font
- func Global(fontName string) *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 NewFontCloudResource(cloudResourceName string) *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 CourierBoldOblique ¶
func CourierBoldOblique() Font
Gets the Courier Bold Oblique core font with Latin 1 encoding.
func CourierOblique ¶
func CourierOblique() Font
Gets the Courier Oblique core font with Latin 1 encoding.
func GoogleFontWithWeight ¶
func HelveticaBold ¶
func HelveticaBold() Font
Gets the Helvetica Bold core font with Latin 1 encoding.
func HelveticaBoldOblique ¶
func HelveticaBoldOblique() Font
* Gets the Helvetica Bold Oblique core font with Latin 1 encoding.
func HelveticaOblique ¶
func HelveticaOblique() Font
Gets the Helvetica Oblique core font with Latin 1 encoding.
func NewFontCloudResource ¶ added in v2.2.3
func NewFontResource ¶
NewFontResource initializes a new Font with given font file provided with path.
func TimesBoldItalic ¶
func TimesBoldItalic() Font
Gets the Times Bold Italic 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
Click to show internal directories.
Click to hide internal directories.