From 3c832d36f6b81009d7f61e87d152e2d3baf18724 Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Mon, 10 Apr 2023 14:21:37 -0700 Subject: [PATCH] measure with semibold --- lib/textmeasure/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/textmeasure/markdown.go b/lib/textmeasure/markdown.go index 02a06b78a..a01db81e9 100644 --- a/lib/textmeasure/markdown.go +++ b/lib/textmeasure/markdown.go @@ -273,7 +273,7 @@ func (ruler *Ruler) measureNode(depth int, n *html.Node, fontFamily *d2fonts.Fon switch n.Data { case "h1", "h2", "h3", "h4", "h5", "h6": fontSize = HeaderToFontSize[n.Data] - fontStyle = d2fonts.FONT_STYLE_BOLD + fontStyle = d2fonts.FONT_STYLE_SEMIBOLD originalLineHeight := ruler.LineHeightFactor ruler.LineHeightFactor = LineHeight_h defer func() {