summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2016-04-15 14:02:24 -0400
committerPietro Gagliardi <[email protected]>2016-04-15 14:02:24 -0400
commit21d398b1ac558ef344708b15d9b4bb831a3f8a42 (patch)
tree80b36356cc148118e5a386555a458144c8e83622
parent08823edfec3e11008069f4e4401873a08753d6bf (diff)
Removed small caps from the font descriptor. It will be made a setting on TextLayout instead.
-rw-r--r--draw.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/draw.go b/draw.go
index 6b783f6..eb4158d 100644
--- a/draw.go
+++ b/draw.go
@@ -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
}
@@ -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),