<?php
	/**
	 * @package     Formea.Plugin
	 * @subpackage  Core.Pdf
	 *
	 * @copyright   Copyright (C) 2010-2024 Feseur Sdn Bhd. All rights reserved.
	 * @license     GNU General Public License version 2 or later; see LICENSE.txt
	 */

  namespace Joomla\Component\Formea\Plugins\Core\Pdf\Field;

  use Joomla\CMS\Factory;
  use Joomla\CMS\Form\Field\ListField;
  use Joomla\CMS\HTML\HTMLHelper;
  use Joomla\Database\DatabaseDriver;


  class FormeaCorePdfFontField extends ListField
  {
    /**
     * The name field type.
     *
     * @var    string
     */
    protected $type = 'FormeaCorePdfFont';



    public function __construct($form = null)
    {
      parent::__construct($form);

    }


    /**
     * Method to get a list of options for a list input.
     *
     * @return  array    An array of JHtml options.
     */
    protected function getOptions()
    {

      $items = array(
        'aealarabiya'=> 'AlArabiya (Arabic)',
        'aefurat'=> 'Furat (Arabic)',
       /* 'cid0jp'=> 'CID-0 Japanese',
        'cid0kr'=> 'CID-0 Korean',
        'cid0cs'=> 'CID-0 Chinese Simplified',
        'cid0ct'=> 'CID-0 Chinese Traditional',*/
        'courier'=> 'Courier',
        /*'dejavusansextralight'=> 'DejaVu Sans Extra Light',
        'dejavusans'=> 'DejaVu Sans',
        'dejavusansi'=> 'DejaVu Sans Italic',
        'dejavusansb'=> 'DejaVu Sans Bold',
        'dejavusansbi'=> 'DejaVu Sans Bold Italic',
        'dejavusanscondensed'=> 'DejaVu Sans Condensed',
        'dejavusanscondensedi'=> 'DejaVu Sans Condensed Italic',
        'dejavusanscondensedb'=> 'DejaVu Sans Condensed Bold',
        'dejavusanscondensedbi'=> 'DejaVu Sans Condensed Bold Italic',
        'dejavusansmono'=> 'DejaVu Sans Mono',
        'dejavusansmonoi'=> 'DejaVu Sans Mono Italic',
        'dejavusansmonob'=> 'DejaVu Sans Mono Bold',
        'dejavusansmonobi'=> 'DejaVu Sans Mono Bold Italic',
        'dejavuserif'=> 'DejaVu Serif',*/
       /* 'freemono'=> 'FreeMono',
        'freesans'=> 'FreeSans',
        'freeserif'=> 'FreeSerif',*/
        'helvetica'=> 'Helvetica',
        'hysmyeongjostdmedium'=> 'MyungJo Medium (Korean)',
        'kozgopromedium'=> 'Kozuka Gothic Pro (Japanese Sans-Serif)',
        'kozminproregular'=> 'Kozuka Mincho Pro (Japanese Serif)',
        'msungstdlight'=> 'MSung Light (Trad. Chinese)',
        'stsongstdlight'=> 'STSong Light (Simp. Chinese)',
        'times'=> 'Times-Roman',
      );
      $options = [];
      if ($items)
      {
        foreach ($items as $itemName => $itemValue)
        {
          $options[] = HTMLHelper::_('select.option', $itemName, ucwords($itemValue));
        }
      }
      $options = array_merge(parent::getOptions(), $options);

      return $options;
    }


  }
