Documentation
¶
Overview ¶
Package SystemFont provides methods for working with SystemFont object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AllowSystemFallback() bool
- func (self Instance) Antialiasing() gdclass.TextServerFontAntialiasing
- func (self Instance) AsFont() Font.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsSystemFont() Instance
- func (self Instance) DisableEmbeddedBitmaps() bool
- func (self Instance) FontItalic() bool
- func (self Instance) FontNames() []string
- func (self Instance) ForceAutohinter() bool
- func (self Instance) GenerateMipmaps() bool
- func (self Instance) Hinting() gdclass.TextServerHinting
- func (self Instance) MsdfPixelRange() int
- func (self Instance) MsdfSize() int
- func (self Instance) MultichannelSignedDistanceField() bool
- func (self Instance) Oversampling() Float.X
- func (self Instance) SetAllowSystemFallback(value bool)
- func (self Instance) SetAntialiasing(value gdclass.TextServerFontAntialiasing)
- func (self Instance) SetDisableEmbeddedBitmaps(value bool)
- func (self Instance) SetFontItalic(value bool)
- func (self Instance) SetFontNames(value []string)
- func (self Instance) SetFontStretch(value int)
- func (self Instance) SetFontWeight(value int)
- func (self Instance) SetForceAutohinter(value bool)
- func (self Instance) SetGenerateMipmaps(value bool)
- func (self Instance) SetHinting(value gdclass.TextServerHinting)
- func (self Instance) SetMsdfPixelRange(value int)
- func (self Instance) SetMsdfSize(value int)
- func (self Instance) SetMultichannelSignedDistanceField(value bool)
- func (self Instance) SetOversampling(value Float.X)
- func (self Instance) SetSubpixelPositioning(value gdclass.TextServerSubpixelPositioning)
- func (self Instance) SubpixelPositioning() gdclass.TextServerSubpixelPositioning
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
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 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 (Instance) AllowSystemFallback ¶
func (Instance) Antialiasing ¶
func (self Instance) Antialiasing() gdclass.TextServerFontAntialiasing
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsSystemFont ¶
func (Instance) DisableEmbeddedBitmaps ¶
func (Instance) FontItalic ¶
func (Instance) ForceAutohinter ¶
func (Instance) GenerateMipmaps ¶
func (Instance) Hinting ¶
func (self Instance) Hinting() gdclass.TextServerHinting
func (Instance) MsdfPixelRange ¶
func (Instance) MultichannelSignedDistanceField ¶
func (Instance) Oversampling ¶
func (Instance) SetAllowSystemFallback ¶
func (Instance) SetAntialiasing ¶
func (self Instance) SetAntialiasing(value gdclass.TextServerFontAntialiasing)
func (Instance) SetDisableEmbeddedBitmaps ¶
func (Instance) SetFontItalic ¶
func (Instance) SetFontNames ¶
func (Instance) SetFontStretch ¶
func (Instance) SetFontWeight ¶
func (Instance) SetForceAutohinter ¶
func (Instance) SetGenerateMipmaps ¶
func (Instance) SetHinting ¶
func (self Instance) SetHinting(value gdclass.TextServerHinting)
func (Instance) SetMsdfPixelRange ¶
func (Instance) SetMsdfSize ¶
func (Instance) SetMultichannelSignedDistanceField ¶
func (Instance) SetOversampling ¶
func (Instance) SetSubpixelPositioning ¶
func (self Instance) SetSubpixelPositioning(value gdclass.TextServerSubpixelPositioning)
func (Instance) SubpixelPositioning ¶
func (self Instance) SubpixelPositioning() gdclass.TextServerSubpixelPositioning