measure with semibold
This commit is contained in:
parent
423c7e88eb
commit
3c832d36f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue