com.aspose.pdf.operators

Class SelectFont



  • public class SelectFont
    extends TextStateOperator

    Class representing Tf operator (set text font and size).

    • Constructor Detail

      • SelectFont

        public SelectFont(int index,
                          com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)

        Constructor for operator class.

        Parameters:
        index - Index of operator.
        command - Operator command.
      • SelectFont

        public SelectFont(String resName,
                          double size)

        Constructor for writin program.

        Parameters:
        resName - The name of font resource, e.g. F1, F2 etc.
        size - Size of the font.
    • Method Detail

      • getName

        public String getName()

        Gets name of font.

        Returns:
        String value
      • getSize

        public double getSize()

        Gets size of text.

        Returns:
        double value
      • accept

        public void accept(IOperatorSelector visitor)

        Accepts visitor object to process operator.

        Overrides:
        accept in class TextOperator
        Parameters:
        visitor - Visitor object.
      • toString

        public String toString()

        Returns text representation of operator.

        Overrides:
        toString in class Operator
        Returns:
        Text representation of operator.