From 21d398b1ac558ef344708b15d9b4bb831a3f8a42 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 15 Apr 2016 14:02:24 -0400 Subject: [PATCH] Removed small caps from the font descriptor. It will be made a setting on TextLayout instead. --- draw.go | 2 -- 1 file changed, 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),