Removed small caps from the font descriptor. It will be made a setting on TextLayout instead.
This commit is contained in:
parent
08823edfec
commit
21d398b1ac
2
draw.go
2
draw.go
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue