mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
text: offset Weight constants so the zero value is normal text weight
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -83,9 +83,6 @@ func NewCache(collection []FontFace) *Cache {
|
||||
faces: make(map[Font]*faceCache),
|
||||
}
|
||||
for i, ff := range collection {
|
||||
if ff.Font.Weight == 0 {
|
||||
ff.Font.Weight = Normal
|
||||
}
|
||||
if i == 0 {
|
||||
c.def = ff.Font.Typeface
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user