mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
text: simplify font weights
Signed-off-by: Serhat Sevki Dincer <jfcgauss@gmail.com>
This commit is contained in:
committed by
Elias Naur
parent
35a8231963
commit
4a1962e5e8
+17
-16
@@ -53,22 +53,23 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Thin Weight = 100 - 400
|
Thin Weight = -300
|
||||||
Hairline Weight = Thin
|
ExtraLight Weight = -200
|
||||||
ExtraLight Weight = 200 - 400
|
Light Weight = -100
|
||||||
UltraLight Weight = ExtraLight
|
Normal Weight = 0
|
||||||
Light Weight = 300 - 400
|
Medium Weight = 100
|
||||||
Normal Weight = 400 - 400
|
SemiBold Weight = 200
|
||||||
Medium Weight = 500 - 400
|
Bold Weight = 300
|
||||||
SemiBold Weight = 600 - 400
|
ExtraBold Weight = 400
|
||||||
DemiBold Weight = SemiBold
|
Black Weight = 500
|
||||||
Bold Weight = 700 - 400
|
|
||||||
ExtraBold Weight = 800 - 400
|
Hairline = Thin
|
||||||
UltraBold Weight = ExtraBold
|
UltraLight = ExtraLight
|
||||||
Black Weight = 900 - 400
|
DemiBold = SemiBold
|
||||||
Heavy Weight = Black
|
UltraBold = ExtraBold
|
||||||
ExtraBlack Weight = 950 - 400
|
Heavy = Black
|
||||||
UltraBlack Weight = ExtraBlack
|
ExtraBlack = Black + 50
|
||||||
|
UltraBlack = ExtraBlack
|
||||||
)
|
)
|
||||||
|
|
||||||
func (a Alignment) String() string {
|
func (a Alignment) String() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user