PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFContentStream Class / setTextFontAndSize Method
Current font.
Current font size.
Collapse All Expand All
In This Topic

setTextFontAndSize Method
In This Topic
Sets the current font and size for text show operators. Operator: Tf
Syntax

    public void setTextFontAndSize(
       PDFFont font,
       double size
    )

#### Parameters

font
  Current font.
size
  Current font size.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When font is null.

See Also

#### Reference

PDFContentStream Class
PDFContentStream Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.