factoryFont

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

Package factoryFont

English: Create a font struct for the canvas element base o web browser

Português: Cria o struct de fonte baseado no comportamento do navegador web para o

elemento canvas.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFont

func NewFont(

	size int,
	family string,
	style string,

) font.Font

NewFont

English: Create a new font struct

size: size of the font
sizeUnit: size unit of the font
fontColor: a color.RGBA struct used with text
family: font name. Must be a string or a constant fontFamily.FontFamily
        Example: 'Verdana' or fontFamily.KHelvetica

Português: Cria um struct de fonte

size: tamanho da fonte
sizeUnit: unidade do tamanho da fonte, exemplo: 'px'
fontColor: um struct color.RGBA usado com texto
family: nome da fonte escolhida. Pode ser string ou uma constante
fontFamily.FontFamily.
        Exemplo: 'Verdana' ou fontFamily.KHelvetica

func NewFontComplete

func NewFontComplete(

	size int,
	family string,
	style string,
	variant string,
	weight string,

) font.Font

NewFontComplete

English: Create a new font struct

size: size of the font
sizeUnit: size unit of the font
fontColor: a color.RGBA struct used with text
family: font name. Must be a string or a constant fontFamily.FontFamily
        Example: 'Verdana' or fontFamily.KHelvetica
density: Please, see a density methods
iDensity: Please, see a density methods

Português: Cria um struct de fonte

size: tamanho da fonte
sizeUnit: unidade do tamanho da fonte, exemplo: 'px'
fontColor: um struct color.RGBA usado com texto
family: nome da fonte escolhida. Pode ser string ou uma constante
fontFamily.FontFamily.
        Exemplo: 'Verdana' ou fontFamily.KHelvetica
density: Por favor, veja o elemento densidade
iDensity: Por favor, veja o elemento densidade

Types

This section is empty.

Jump to

Keyboard shortcuts

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