1<?php 2 3namespace Mpdf\Tag; 4 5class Tta extends SubstituteTag 6{ 7 8 public function open($attr, &$ahtml, &$ihtml) 9 { 10 $this->mpdf->tta = true; 11 $this->mpdf->InlineProperties['TTA'] = $this->mpdf->saveInlineProperties(); 12 13 if (in_array($this->mpdf->FontFamily, $this->mpdf->mono_fonts)) { 14 $this->mpdf->setCSS(['FONT-FAMILY' => 'ccourier'], 'INLINE'); 15 } elseif (in_array($this->mpdf->FontFamily, $this->mpdf->serif_fonts)) { 16 $this->mpdf->setCSS(['FONT-FAMILY' => 'ctimes'], 'INLINE'); 17 } else { 18 $this->mpdf->setCSS(['FONT-FAMILY' => 'chelvetica'], 'INLINE'); 19 } 20 } 21 22} 23