font

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

func Courier() Font

Gets the Courier core font with Latin 1 encoding.

func CourierBold

func CourierBold() Font

Gets the Courier Bold core font with Latin 1 encoding.

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 Global

func Global(fontName string) *Font

func Google

func Google(fontName string) *Font

func GoogleFontWithWeight

func GoogleFontWithWeight(fontName string, weight int, italic bool) *Font

func Helvetica

func Helvetica() Font

Gets the Helvetica core font with Latin 1 encoding.

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 NewFont

func NewFont() *Font

Initializes a new instance of the `Font` class

func NewFontCloudResource added in v2.2.3

func NewFontCloudResource(cloudResourceName string) *Font

func NewFontResource

func NewFontResource(path string, resourceName string) *Font

NewFontResource initializes a new Font with given font file provided with path.

func Symbol

func Symbol() Font

Gets the Symbol core font.

func TimesBold

func TimesBold() Font

Gets the Times Bold core font with Latin 1 encoding.

func TimesBoldItalic

func TimesBoldItalic() Font

Gets the Times Bold Italic core font with Latin 1 encoding.

func TimesItalic

func TimesItalic() Font

Gets the Times Italic core font with Latin 1 encoding.

func TimesRoman

func TimesRoman() Font

Gets the Times Roman core font with Latin 1 encoding.

func ZapfDingbats

func ZapfDingbats() Font

Gets the Zapf Dingbats core font.

type FontInformation

type FontInformation struct {
	resource.Resource
	// contains filtered or unexported fields
}

func NewFontInformation

func NewFontInformation() *FontInformation

func (*FontInformation) FilePath

func (p *FontInformation) FilePath() string

func (*FontInformation) FontName

func (p *FontInformation) FontName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL