* Handle Tf (set font and size) operator.
(operands: ContentToken[])
| 190 | * Handle Tf (set font and size) operator. |
| 191 | */ |
| 192 | private handleTf(operands: ContentToken[]): void { |
| 193 | const fontName = this.getName(operands[0]); |
| 194 | const fontSize = this.getNumber(operands[1]); |
| 195 | |
| 196 | if (fontName) { |
| 197 | const font = this.resolveFont(fontName); |
| 198 | this.state.font = font; |
| 199 | } |
| 200 | |
| 201 | this.state.fontSize = fontSize; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Handle Tj (show string) operator. |
no test coverage detected