Documentation ¶
Index ¶
- Constants
- func ByteSwappedUnicode(swap bool)
- func GetError() error
- func Init() int
- func Quit()
- func SetError(err string)
- func WasInit() bool
- 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() bool
- func (f *Font) Faces() int
- func (f *Font) GetHinting() int
- func (f *Font) GetKerning() bool
- func (f *Font) GetOutline() int
- func (f *Font) GetStyle() int
- func (f *Font) Height() int
- func (f *Font) LineSkip() int
- func (f *Font) RenderText_Blended(text string, color sdl.Color) *sdl.Surface
- func (f *Font) RenderText_Shaded(text string, fg, bg sdl.Color) *sdl.Surface
- func (f *Font) RenderText_Solid(text string, color sdl.Color) *sdl.Surface
- func (f *Font) SetHinting(hinting int)
- func (f *Font) SetKerning(allowed bool)
- func (f *Font) SetOutline(outline int)
- func (f *Font) SetStyle(style int)
Constants ¶
View Source
const ( HINTING_NORMAL = int(C.TTF_HINTING_NORMAL) HINTING_LIGHT = int(C.TTF_HINTING_LIGHT) HINTING_MONO = int(C.TTF_HINTING_MONO) HINTING_NONE = int(C.TTF_HINTING_NONE) )
Font Hinting Types
View Source
const ( STYLE_NORMAL = 0 STYLE_BOLD = 0x01 STYLE_ITALIC = 0x02 STYLE_UNDERLINE = 0x04 STYLE_STRIKETHROUGH = 0x08 )
Font Style Types
Variables ¶
This section is empty.
Functions ¶
func ByteSwappedUnicode ¶
func ByteSwappedUnicode(swap bool)
Types ¶
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
func (*Font) FaceFamilyName ¶
func (*Font) FaceIsFixedWidth ¶
func (*Font) GetHinting ¶
func (*Font) GetKerning ¶
func (*Font) GetOutline ¶
func (*Font) RenderText_Blended ¶
func (*Font) RenderText_Shaded ¶
func (*Font) RenderText_Solid ¶
func (*Font) SetHinting ¶
func (*Font) SetKerning ¶
func (*Font) SetOutline ¶
Click to show internal directories.
Click to hide internal directories.