From 735bcda9339c9d3eb80927f1e5f430d3d0b4d084 Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Mon, 10 Apr 2023 15:01:11 -0700 Subject: [PATCH] handdrawn semibold --- d2renderers/d2fonts/d2fonts.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/d2renderers/d2fonts/d2fonts.go b/d2renderers/d2fonts/d2fonts.go index 15335f636..058371017 100644 --- a/d2renderers/d2fonts/d2fonts.go +++ b/d2renderers/d2fonts/d2fonts.go @@ -180,6 +180,11 @@ func init() { Family: HandDrawn, Style: FONT_STYLE_BOLD, }: fuzzyBubblesBoldBase64, + { + Family: HandDrawn, + Style: FONT_STYLE_SEMIBOLD, + // This font has no semibold, so just reuse bold + }: fuzzyBubblesBoldBase64, } for k, v := range FontEncodings { @@ -271,6 +276,10 @@ func init() { Family: HandDrawn, Style: FONT_STYLE_BOLD, }] = b + FontFaces[Font{ + Family: HandDrawn, + Style: FONT_STYLE_SEMIBOLD, + }] = b } var D2_FONT_TO_FAMILY = map[string]FontFamily{