Fontpicker.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace Dotdigitalgroup\Email\Model\Config\Configuration;
  3. class Fontpicker implements \Magento\Framework\Data\OptionSourceInterface
  4. {
  5. /**
  6. * Options getter. web safe fonts.
  7. *
  8. * @return array
  9. */
  10. public function toOptionArray()
  11. {
  12. return [
  13. [
  14. 'value' => 'Arial, Helvetica, sans-serif',
  15. 'label' => 'Arial, Helvetica',
  16. ],
  17. [
  18. 'value' => "'Arial Black', Gadget, sans-serif",
  19. 'label' => 'Arial Black, Gadget',
  20. ],
  21. [
  22. 'value' => "'Courier New', Courier, monospace",
  23. 'label' => 'Courier New, Courier',
  24. ],
  25. [
  26. 'value' => 'Georgia, serif',
  27. 'label' => 'Georgia',
  28. ],
  29. [
  30. 'value' => "'MS Sans Serif', Geneva, sans-serif",
  31. 'label' => 'MS Sans Serif, Geneva',
  32. ],
  33. [
  34. 'value' => "'Palatino Linotype', 'Book Antiqua', Palatino, serif",
  35. 'label' => 'Palatino Linotype, Book Antiqua',
  36. ],
  37. [
  38. 'value' => 'Tahoma, Geneva, sans-serif',
  39. 'label' => 'Tahoma, Geneva',
  40. ],
  41. [
  42. 'value' => "'Times New Roman', Times, serif",
  43. 'label' => 'Times New Roman, Times',
  44. ],
  45. [
  46. 'value' => "'Trebuchet MS', Helvetica, sans-serif",
  47. 'label' => 'Trebuchet MS, Helvetica',
  48. ],
  49. [
  50. 'value' => 'Verdana, Geneva, sans-serif',
  51. 'label' => 'Verdana, Geneva',
  52. ],
  53. ];
  54. }
  55. }