Permalink
Browse files

Merge pull request #52 from salviati/master

ttf: add outline and hinting functions
  • Loading branch information...
2 parents b7f836b + c980ef4 commit 84b1079e9a85985545e12aef4d389efc37415579 @banthar committed Feb 20, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 ttf/ttf.go
View
@@ -161,6 +161,14 @@ func (f *Font) GetStyle() int { return int(C.TTF_GetFontStyle(f.cfont)) }
// Sets the rendering style of the font.
func (f *Font) SetStyle(style int) { C.TTF_SetFontStyle(f.cfont, C.int(style)) }
+func (f *Font) GetOutline() int { return int(C.TTF_GetFontOutline(f.cfont)) }
+
+func (f *Font) SetOutline(outline int) { C.TTF_SetFontOutline(f.cfont, C.int(outline)) }
+
+func (f *Font) GetHinting() int { return int(C.TTF_GetFontHinting(f.cfont)) }
+
+func (f *Font) SetHinting(hinting int) { C.TTF_SetFontHinting(f.cfont, C.int(hinting)) }
+
// Returns the maximum height of all the glyphs of the font.
func (f *Font) Height() int { return int(C.TTF_FontHeight(f.cfont)) }

0 comments on commit 84b1079

Please sign in to comment.