From 4a1962e5e8c025d4b66fe200b41ce49fc02537ff Mon Sep 17 00:00:00 2001 From: Serhat Sevki Dincer Date: Thu, 23 Feb 2023 23:08:25 +1100 Subject: [PATCH] text: simplify font weights Signed-off-by: Serhat Sevki Dincer --- text/text.go | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/text/text.go b/text/text.go index b77bd748..2185da43 100644 --- a/text/text.go +++ b/text/text.go @@ -53,22 +53,23 @@ const ( ) const ( - Thin Weight = 100 - 400 - Hairline Weight = Thin - ExtraLight Weight = 200 - 400 - UltraLight Weight = ExtraLight - Light Weight = 300 - 400 - Normal Weight = 400 - 400 - Medium Weight = 500 - 400 - SemiBold Weight = 600 - 400 - DemiBold Weight = SemiBold - Bold Weight = 700 - 400 - ExtraBold Weight = 800 - 400 - UltraBold Weight = ExtraBold - Black Weight = 900 - 400 - Heavy Weight = Black - ExtraBlack Weight = 950 - 400 - UltraBlack Weight = ExtraBlack + Thin Weight = -300 + ExtraLight Weight = -200 + Light Weight = -100 + Normal Weight = 0 + Medium Weight = 100 + SemiBold Weight = 200 + Bold Weight = 300 + ExtraBold Weight = 400 + Black Weight = 500 + + Hairline = Thin + UltraLight = ExtraLight + DemiBold = SemiBold + UltraBold = ExtraBold + Heavy = Black + ExtraBlack = Black + 50 + UltraBlack = ExtraBlack ) func (a Alignment) String() string {