font

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 3 Imported by: 1

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 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 Google added in v1.1.0

func Google(fontName string) *Font

func GoogleFontWithWeight added in v1.1.0

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

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 NewFont added in v1.0.2

func NewFont() *Font

Initializes a new instance of the `Font` class

func NewFontResource added in v1.0.2

func NewFontResource(path string, resourceName string) *Font

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

func Symbol added in v1.0.2

func Symbol() Font

Gets the Symbol core font.

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.

func ZapfDingbats added in v1.0.2

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