Removed small caps from the font descriptor. It will be made a setting on TextLayout instead.

This commit is contained in:
Pietro Gagliardi 2016-04-15 14:02:24 -04:00
parent 08823edfec
commit 21d398b1ac
1 changed files with 0 additions and 2 deletions

View File

@ -662,7 +662,6 @@ type FontDescriptor struct {
Size float64 // as a text size, for instance 12 for a 12-point font Size float64 // as a text size, for instance 12 for a 12-point font
Weight TextWeight Weight TextWeight
Italic TextItalic Italic TextItalic
SmallCaps bool
Stretch TextStretch Stretch TextStretch
} }
@ -691,7 +690,6 @@ func LoadClosestFont(desc *FontDescriptor) *Font {
d.Size = C.double(desc.Size) d.Size = C.double(desc.Size)
d.Weight = C.uiDrawTextWeight(desc.Weight) d.Weight = C.uiDrawTextWeight(desc.Weight)
d.Italic = C.uiDrawTextItalic(desc.Italic) d.Italic = C.uiDrawTextItalic(desc.Italic)
d.SmallCaps = frombool(desc.SmallCaps)
d.Stretch = C.uiDrawTextStretch(desc.Stretch) d.Stretch = C.uiDrawTextStretch(desc.Stretch)
return &Font{ return &Font{
f: C.newFont(d), f: C.newFont(d),