diff options
author | Joe Westcott <joewestcott@users.noreply.github.com> | 2019-04-29 19:59:53 +0100 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2019-04-29 14:59:53 -0400 |
commit | 3319c51b75785b73101c8c9cd19a3eec8f494c0a (patch) | |
tree | 42483e27babe9b13148a8f9060b05266435584f9 /fpdf.go | |
parent | 5262aa851a9a9faf10c562b221986ac190099efc (diff) |
Add SetFontStyle method (#248)
Diffstat (limited to 'fpdf.go')
-rw-r--r-- | fpdf.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1799,6 +1799,11 @@ func (f *Fpdf) SetFont(familyStr, styleStr string, size float64) { return } +// SetFontStyle sets the style of the current font. See also SetFont() +func (f *Fpdf) SetFontStyle(styleStr string) { + f.SetFont(f.fontFamily, styleStr, f.fontSizePt) +} + // SetFontSize defines the size of the current font. Size is specified in // points (1/ 72 inch). See also SetFontUnitSize(). func (f *Fpdf) SetFontSize(size float64) { |