public function font ($key, $optionsSpec = null) { $key = 'font.' . $key; $settings = $this->getSettings(); if (!@$settings[$key]) error('Font not found: ' . $key); $font = new Font($settings[$key]); if ($optionsSpec) $font->setOptions($optionsSpec); return $font; }