summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index bd4aa4e..4053802 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -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) {