SystemFont

package
v0.0.0-...-d9f4d4e Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package SystemFont provides methods for working with SystemFont object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsSystemFont() Instance
}

type Instance

type Instance [1]gdclass.SystemFont

[SystemFont] loads a font from a system font with the first matching name from [member font_names]. It will attempt to match font style, but it's not guaranteed. The returned font might be part of a font collection or be a variable font with OpenType "weight", "width" and/or "italic" features set. You can create [FontVariation] of the system font for precise control over its features. [b]Note:[/b] This class is implemented on iOS, Linux, macOS and Windows, on other platforms it will fallback to default theme font.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AllowSystemFallback

func (self Instance) AllowSystemFallback() bool

func (Instance) Antialiasing

func (self Instance) Antialiasing() gdclass.TextServerFontAntialiasing

func (Instance) AsFont

func (self Instance) AsFont() Font.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) AsSystemFont

func (self Instance) AsSystemFont() Instance

func (Instance) DisableEmbeddedBitmaps

func (self Instance) DisableEmbeddedBitmaps() bool

func (Instance) FontItalic

func (self Instance) FontItalic() bool

func (Instance) FontNames

func (self Instance) FontNames() []string

func (Instance) ForceAutohinter

func (self Instance) ForceAutohinter() bool

func (Instance) GenerateMipmaps

func (self Instance) GenerateMipmaps() bool

func (Instance) Hinting

func (self Instance) Hinting() gdclass.TextServerHinting

func (Instance) MsdfPixelRange

func (self Instance) MsdfPixelRange() int

func (Instance) MsdfSize

func (self Instance) MsdfSize() int

func (Instance) MultichannelSignedDistanceField

func (self Instance) MultichannelSignedDistanceField() bool

func (Instance) Oversampling

func (self Instance) Oversampling() Float.X

func (Instance) SetAllowSystemFallback

func (self Instance) SetAllowSystemFallback(value bool)

func (Instance) SetAntialiasing

func (self Instance) SetAntialiasing(value gdclass.TextServerFontAntialiasing)

func (Instance) SetDisableEmbeddedBitmaps

func (self Instance) SetDisableEmbeddedBitmaps(value bool)

func (Instance) SetFontItalic

func (self Instance) SetFontItalic(value bool)

func (Instance) SetFontNames

func (self Instance) SetFontNames(value []string)

func (Instance) SetFontStretch

func (self Instance) SetFontStretch(value int)

func (Instance) SetFontWeight

func (self Instance) SetFontWeight(value int)

func (Instance) SetForceAutohinter

func (self Instance) SetForceAutohinter(value bool)

func (Instance) SetGenerateMipmaps

func (self Instance) SetGenerateMipmaps(value bool)

func (Instance) SetHinting

func (self Instance) SetHinting(value gdclass.TextServerHinting)

func (Instance) SetMsdfPixelRange

func (self Instance) SetMsdfPixelRange(value int)

func (Instance) SetMsdfSize

func (self Instance) SetMsdfSize(value int)

func (Instance) SetMultichannelSignedDistanceField

func (self Instance) SetMultichannelSignedDistanceField(value bool)

func (Instance) SetOversampling

func (self Instance) SetOversampling(value Float.X)

func (Instance) SetSubpixelPositioning

func (self Instance) SetSubpixelPositioning(value gdclass.TextServerSubpixelPositioning)

func (Instance) SubpixelPositioning

func (self Instance) SubpixelPositioning() gdclass.TextServerSubpixelPositioning

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

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