1 | <?php |
||
14 | class FontsFactory |
||
15 | { |
||
16 | /** @var string */ |
||
17 | protected $fontsPath; |
||
18 | /** @var array */ |
||
19 | protected $fonts = array(); |
||
20 | |||
21 | 11 | protected function __construct($fontsPath) |
|
26 | |||
27 | 11 | public static function create($fontsPath) |
|
32 | |||
33 | 11 | public function loadFonts() |
|
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | * @return Font |
||
44 | * @throws \InvalidArgumentException |
||
45 | */ |
||
46 | 10 | public function getFont($name) |
|
51 | |||
52 | /** |
||
53 | * @param string $name |
||
54 | * @param int $size |
||
55 | * @param string $color |
||
56 | * @return ImagineFont |
||
57 | */ |
||
58 | 10 | public function getImagineFont($name, $size, $color = '#000000') |
|
63 | |||
64 | public function getFonts() |
||
68 | } |
||
69 |