Skip to content

Commit

Permalink
feat:expose current font --story=1234567
Browse files Browse the repository at this point in the history
  • Loading branch information
lourisxu committed Mar 28, 2024
1 parent 0c885ad commit 9a5f755
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ doc/body.md
doc/index.html
doc/index.html.ok
coverage.html

.history
# macOS
.DS_Store
.DS_Store
5 changes: 5 additions & 0 deletions fpdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -2139,6 +2139,11 @@ func (f *Fpdf) GetFontSize() (ptSize, unitSize float64) {
return f.fontSizePt, f.fontSize
}

// GetCurrentFont returns the current font
func (f *Fpdf) GetCurrentFont() fontDefType {
return f.currentFont
}

// AddLink creates a new internal link and returns its identifier. An internal
// link is a clickable area which directs to another place within the document.
// The identifier can then be passed to Cell(), Write(), Image() or Link(). The
Expand Down

0 comments on commit 9a5f755

Please sign in to comment.