measure with semibold

This commit is contained in:
Gavin Nishizawa 2023-04-10 14:21:37 -07:00
parent 423c7e88eb
commit 3c832d36f6
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -273,7 +273,7 @@ func (ruler *Ruler) measureNode(depth int, n *html.Node, fontFamily *d2fonts.Fon
switch n.Data { switch n.Data {
case "h1", "h2", "h3", "h4", "h5", "h6": case "h1", "h2", "h3", "h4", "h5", "h6":
fontSize = HeaderToFontSize[n.Data] fontSize = HeaderToFontSize[n.Data]
fontStyle = d2fonts.FONT_STYLE_BOLD fontStyle = d2fonts.FONT_STYLE_SEMIBOLD
originalLineHeight := ruler.LineHeightFactor originalLineHeight := ruler.LineHeightFactor
ruler.LineHeightFactor = LineHeight_h ruler.LineHeightFactor = LineHeight_h
defer func() { defer func() {