php - Including custom font with mpdf does not show fonts in Adobe Acrobat on Windows but does on Okular -


when include custom fonts (as specified below) mpdf, custom fonts correctly used in pdf when viewed in okular (a linux pdf reader) , chrome's built in pdf viewer, but on windows, adobe acrobat falls helvetica, not custom font.

could mpdf writing font instructions in non-standard manner? or doing wrong?

i'm including them according these instructions: http://mpdf1.com/manual/index.php?tid=501

assumes have 2 font files "frutiger-normal.ttf" , "frutigerobl-normal.ttf" want available in mpdf, , refer them in html/css "frutiger".

1. upload 2 files fonts directory (/ttfonts)

2. in configuration file (config_fonts.php) add array $this->fontdata:

"frutiger" => array(     'r' => "frutiger-normal.ttf",     'i' => "frutigerobl-normal.ttf", ), 

3. in html or css code use this:

<p style="font-family: frutiger">....</p> 


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -