Skip to content

Commit

Permalink
Removed small caps from the font descriptor. It will be made a settin…
Browse files Browse the repository at this point in the history
…g on TextLayout instead.
  • Loading branch information
andlabs committed Apr 15, 2016
1 parent 08823ed commit 21d398b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,6 @@ type FontDescriptor struct {
Size float64 // as a text size, for instance 12 for a 12-point font
Weight TextWeight
Italic TextItalic
SmallCaps bool
Stretch TextStretch
}

Expand Down Expand Up @@ -691,7 +690,6 @@ func LoadClosestFont(desc *FontDescriptor) *Font {
d.Size = C.double(desc.Size)
d.Weight = C.uiDrawTextWeight(desc.Weight)
d.Italic = C.uiDrawTextItalic(desc.Italic)
d.SmallCaps = frombool(desc.SmallCaps)
d.Stretch = C.uiDrawTextStretch(desc.Stretch)
return &Font{
f: C.newFont(d),
Expand Down

0 comments on commit 21d398b

Please sign in to comment.