font

package
v0.0.0-...-a8ee3e7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 1 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 {
	// en: due to the problem of javascript not being able to measure the font height
	// correctly, all fonts are determined in pixels
	//
	// pt_br: devido ao problema do javascript não conseguir medir a altura da fonte
	// de forma correta, todas as fontes são determinadas em pixels
	Size int

	// en: use a string like 'verdana' ou a font family factory, ex.:
	// factoryFontFamily.NewArialBlack()
	//
	// pt_br: use uma string, tipo 'verdana' ou uma fábrica de famílias de fonte, ex.:
	// factoryFontFamily.NewArialBlack()
	Family string

	// en: use a string, like 'bold' or a font style factory, ex.:
	// factoryFontStyle.NewItalic()
	//
	// pt_br: use uma string, tipo 'bold' ou uma fábrica de estilo de fonte, ex.:
	// factoryFontStyle.NewItalic()
	Style string

	// en: use a string 'Small-Caps' or factoryFontVariant.NewSmallCaps()
	//
	// pt_br: use a string 'Small-Caps' ou factoryFontVariant.NewSmallCaps()
	Variant string

	// en: use a string like 'bold' or a font weight factory, ex.:
	// factoryFontWeight.NewBold()
	//
	// pt_br: use uma string, tipo 'bold' ou uma fábrica de peso de fonte, ex.:
	// factoryFontWeight.NewBold()
	Weight string
}

func (*Font) String

func (el *Font) String() string

en: Format the browser canvas font string as w3school rules

Note: browser canvas don't use color

pt_br: Formata a string de fonte para elemento canvas no formato do w3school

Nota: o elemento canvas do navegador não usa cor

Jump to

Keyboard shortcuts

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