Removed the text gravity stuff. That will be removed.

This commit is contained in:
Pietro Gagliardi 2016-04-15 00:18:39 -04:00
parent ffc857e55c
commit 08823edfec
1 changed files with 0 additions and 5 deletions

View File

@ -656,8 +656,6 @@ const (
TextStretchUltraExpanded TextStretchUltraExpanded
) )
// TODO put TextGravity here
// FontDescriptor describes a Font. // FontDescriptor describes a Font.
type FontDescriptor struct { type FontDescriptor struct {
Family string Family string
@ -666,7 +664,6 @@ type FontDescriptor struct {
Italic TextItalic Italic TextItalic
SmallCaps bool SmallCaps bool
Stretch TextStretch Stretch TextStretch
// TODO gravity
} }
// Font represents an actual font that can be drawn with. // Font represents an actual font that can be drawn with.
@ -696,8 +693,6 @@ func LoadClosestFont(desc *FontDescriptor) *Font {
d.Italic = C.uiDrawTextItalic(desc.Italic) d.Italic = C.uiDrawTextItalic(desc.Italic)
d.SmallCaps = frombool(desc.SmallCaps) d.SmallCaps = frombool(desc.SmallCaps)
d.Stretch = C.uiDrawTextStretch(desc.Stretch) d.Stretch = C.uiDrawTextStretch(desc.Stretch)
// d.Gravity = C.uiDrawTextGravity(desc.Gravity)
d.Gravity = C.uiDrawTextGravitySouth
return &Font{ return &Font{
f: C.newFont(d), f: C.newFont(d),
} }