Skip to content
This repository
Browse code

ttf: add outline and hinting functions

  • Loading branch information...
commit c980ef4f58bd6ecf3e5e0886e463ba76ab6df6e6 1 parent b7f836b
Utkan Güngördü authored February 20, 2012

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  ttf/ttf.go
8  ttf/ttf.go
@@ -161,6 +161,14 @@ func (f *Font) GetStyle() int { return int(C.TTF_GetFontStyle(f.cfont)) }
161 161
 // Sets the rendering style of the font.
162 162
 func (f *Font) SetStyle(style int) { C.TTF_SetFontStyle(f.cfont, C.int(style)) }
163 163
 
  164
+func (f *Font) GetOutline() int { return int(C.TTF_GetFontOutline(f.cfont)) }
  165
+
  166
+func (f *Font) SetOutline(outline int) { C.TTF_SetFontOutline(f.cfont, C.int(outline)) }
  167
+
  168
+func (f *Font) GetHinting() int { return int(C.TTF_GetFontHinting(f.cfont)) }
  169
+
  170
+func (f *Font) SetHinting(hinting int) { C.TTF_SetFontHinting(f.cfont, C.int(hinting)) }
  171
+
164 172
 // Returns the maximum height of all the glyphs of the font.
165 173
 func (f *Font) Height() int { return int(C.TTF_FontHeight(f.cfont)) }
166 174
 

0 notes on commit c980ef4

Please sign in to comment.
Something went wrong with that request. Please try again.