Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Pdf\Core\Font;
6
7use Phpdftk\Encoding\TextEncoder;
8
9/**
10 * A font that has been registered with a writer and assigned a resource
11 * name. ContentStream::setFont() accepts this so callers can pass UTF-8 to
12 * showText() and have the encoder do the byte-level translation for them.
13 *
14 * The encoder is optional — CID/Type0 fonts return null and continue to use
15 * the showTextHex() / showUnicodeText() path.
16 */
17interface RegisteredFont
18{
19    public function getResourceName(): string;
20
21    public function getTextEncoder(): ?TextEncoder;
22}