From 423c8f22ef5ad5c83a9caed5a3c27573cdfa1faa Mon Sep 17 00:00:00 2001 From: Walter Werner SCHNEIDER Date: Tue, 31 Aug 2021 17:17:25 +0300 Subject: [PATCH] text: add missing open-type weights Signed-off-by: Walter Werner SCHNEIDER --- text/text.go | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/text/text.go b/text/text.go index aa14bdfd..a344dffb 100644 --- a/text/text.go +++ b/text/text.go @@ -73,9 +73,22 @@ const ( ) const ( - Normal Weight = 400 - 400 - Medium Weight = 500 - 400 - Bold Weight = 600 - 400 + 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 ) func (a Alignment) String() string {