Skip to content

Commit

Permalink
Increase codecov (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfercher authored Oct 17, 2023
1 parent 79e98d6 commit 4819045
Show file tree
Hide file tree
Showing 15 changed files with 352 additions and 434 deletions.
7 changes: 1 addition & 6 deletions internal/font.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *font) GetFont() (string, fontstyle.Type, float64) {
func (s *font) GetHeight(family string, style fontstyle.Type, size float64) float64 {
s.SetFont(family, style, size)
_, _, fontSize := s.GetFont()
return fontSize / s.GetScaleFactor()
return fontSize / s.scaleFactor
}

// SetFamily defines a new Font family.
Expand Down Expand Up @@ -89,11 +89,6 @@ func (s *font) SetFont(family string, style fontstyle.Type, size float64) {
s.pdf.SetFont(s.family, string(s.style), s.size)
}

// GetScaleFactor retrieve the scale factor defined in the instantiation of gofpdf.
func (s *font) GetScaleFactor() (scaleFactor float64) {
return s.scaleFactor
}

func (s *font) SetColor(color *props.Color) {
if color == nil {
return
Expand Down
Loading

0 comments on commit 4819045

Please sign in to comment.