modern-pdf-lib / setFontOp
Function: setFontOp()
setFontOp(
fontName,size):string
Defined in: src/core/operators/text.ts:71
Select font and size (Tf).
Parameters
fontName
string
Resource name of the font (e.g. /F1). The leading slash is added automatically if absent.
size
number
Font size in user-space units.
Returns
string