Closed sredxny closed 4 years ago
Use SetFont()
. For example,
pdf.SetFont("Arial", "B", 16)
for 16 pt Arial bold (this is sans serif), or
pdf.SetFont("Times", "", 14)
for 14 pt Times New Roman (standard serif font).
@jung-kurt hello, thanks for answer. My mistake, I mean, how to use arial serif, not arial san serif? As am needing to use serif, but I see that its only available for Times
I am not aware of any arial serif font and it definitely is not part of the default base fonts included with PDF readers. If you can find such a font, you will need to add it with AddUTF8Font()
.
I understand that the package by default uses arial sans serif, even if I load an external TTF how can I start to use arial serif?