/** * Adds FontName toolbar button * Добавляет кнопку FontName на панель инструментов. * @see https://www.dokuwiki.org/plugin: */ public function fontNameToolbar(Doku_Event $event, $param) { $options = array( 'Arial' => 'Arial', 'Calligraph' => 'Calligraph', 'DS Yermak_D' => 'DS Yermak_D', 'CyrillicGoth' => 'CyrillicGoth', 'Times New Roman' => 'TimesNewRoman', 'Impact' => 'Impact', 'Brush Script MS' => 'BrushScriptMS', 'Georgia' => 'Georgia', 'Tangerine' => 'Tangerine', 'Tangerine 48px' => 'Tangerine; fs:48px', 'Multiple options' => ': Georgia; MS Serif; serif; fs:36px; lh:1.1', 'Nesting syntax' => ': Georgia; MS Serif; serif>There is nothing either good or bad, but thinking makes it so. //-- William Shakespeare, “Hamlet”, Act 2 scene 2// 'picker', 'title' => $this->getLang('fn_picker'), 'icon' => DOKU_REL.'lib/plugins/typography/images/fontname/picker.png', 'list' => array() ); foreach ($options as $familyName => $familyValue) { $button['list'][] = array( 'type' => 'format', 'title' => $this->getLang('fn_'.$familyName), 'sample' => $this->getLang('fn_'.$familyName.'_sample'), 'icon' => DOKU_REL.'lib/plugins/typography/images/fontname/'.$familyName.'.png', 'open' => '', 'close' => '', ); } $event->data[] = $button; }