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 ¶
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.
Click to show internal directories.
Click to hide internal directories.