Documentation
¶
Index ¶
- Constants
- func ByteSwappedUnicode(swapped int)
- func Init() error
- func Linked_Version() *sdl.Version
- func Quit()
- func VERSION() *sdl.Version
- func WasInit() int
- type Font
- func (f *Font) Ascent() int
- func (f *Font) Close()
- func (f *Font) Descent() int
- func (f *Font) FaceFamilyName() string
- func (f *Font) FaceIsFixedWidth() int
- func (f *Font) FaceStyleName() string
- func (f *Font) Faces() int64
- func (f *Font) GetHinting() int
- func (f *Font) GetKerning() int
- func (f *Font) GetOutline() int
- func (f *Font) GetStyle() int
- func (f *Font) GlyphIsProvided(ch uint16) int
- func (f *Font) GlyphMetrics(ch uint16) (int, int, int, int, int, error)
- func (f *Font) Height() int
- func (f *Font) LineSkip() int
- func (f *Font) RenderTextSolid(text string, fg sdl.Color) (*sdl.Surface, error)
- func (f *Font) RenderUTF8Solid(text string, fg sdl.Color) (*sdl.Surface, error)
- func (f *Font) SetHinting(hinting int)
- func (f *Font) SetKerning(kerning int)
- func (f *Font) SetOutline(outline int)
- func (f *Font) SetStyle(style int)
- func (f *Font) SizeText(text string) (int, int, error)
- func (f *Font) SizeUTF8(text string) (int, int, error)
Constants ¶
View Source
const ( MAJOR_VERSION = C.SDL_TTF_MAJOR_VERSION MINOR_VERSION = C.SDL_TTF_MINOR_VERSION PATCHLEVEL = C.SDL_TTF_PATCHLEVEL )
View Source
const ( UNICODE_BOM_NATIVE = C.UNICODE_BOM_NATIVE UNICODE_BOM_SWAPPED = C.UNICODE_BOM_SWAPPED )
View Source
const ( STYLE_NORMAL = C.TTF_STYLE_NORMAL STYLE_BOLD = C.TTF_STYLE_BOLD STYLE_ITALIC = C.TTF_STYLE_ITALIC STYLE_UNDERLINE = C.TTF_STYLE_UNDERLINE STYLE_STRIKETHROUGH = C.TTF_STYLE_STRIKETHROUGH )
View Source
const ( HINTING_NORMAL = C.TTF_HINTING_NORMAL HINTING_LIGHT = C.TTF_HINTING_LIGHT HINTING_MONO = C.TTF_HINTING_MONO HINTING_NONE = C.TTF_HINTING_NONE )
Variables ¶
This section is empty.
Functions ¶
func ByteSwappedUnicode ¶
func ByteSwappedUnicode(swapped int)
func Linked_Version ¶
Types ¶
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
func (*Font) FaceFamilyName ¶
func (*Font) FaceIsFixedWidth ¶
func (*Font) FaceStyleName ¶
func (*Font) GetHinting ¶
func (*Font) GetKerning ¶
func (*Font) GetOutline ¶
func (*Font) GlyphIsProvided ¶
func (*Font) RenderTextSolid ¶
func (*Font) RenderUTF8Solid ¶
func (*Font) SetHinting ¶
func (*Font) SetKerning ¶
func (*Font) SetOutline ¶
Click to show internal directories.
Click to hide internal directories.