Diário oficial
Writing HTML code
 
Autosizing elements
 


Writing Tables
 


Writing PDF file
 
Memory usage
 
0 256M


Memory usage (peak)
 
0 256M


Information

WARNING - Font file for times may be an italic cursive script, or extra-bold etc.

Font names as parsed by mPDF

"Arial" font is available as arial
"Arial Black" font is available as arialblack
"Arial Narrow" font is available as arialnarrow
"Time Roman" font is available as timeroman
"Times" font is available as times
"Times New Roman" font is available as timesnewroman
"Times New Roman MT Extra Bold" font is available as timesnewromanmtextrabold

Sample config_fonts.php file

Remember to edit the following arrays to place your preferred default first in order:
$this->fontdata = array (
  'arial' => 
  array (
    'R' => 'arial.ttf',
    'B' => 'arialbd.ttf',
    'BI' => 'arialbi.ttf',
    'I' => 'ariali.ttf',
  ),
  'arialblack' => 
  array (
    'R' => 'ariblk.ttf',
  ),
  'arialnarrow' => 
  array (
    'R' => 'ARIALN.TTF',
    'B' => 'ARIALNB.TTF',
    'BI' => 'ARIALNBI.TTF',
    'I' => 'ARIALNI.TTF',
  ),
  'timeroman' => 
  array (
    'R' => 'Time_Roman.ttf',
  ),
  'times' => 
  array (
    'B' => 'Times-Bold.ttf',
    'R' => 'Times-Bold.ttf',
  ),
  'timesnewroman' => 
  array (
    'R' => 'times.ttf',
    'B' => 'timesbd.ttf',
    'BI' => 'timesbi.ttf',
    'I' => 'timesi.ttf',
  ),
  'timesnewromanmtextrabold' => 
  array (
    'R' => 'times-new-roman-mt-extra-bold.ttf',
  ),
);
$this->sans_fonts = array('arial', 'arialblack', 'arialnarrow');
$this->serif_fonts = array('timesnewroman', 'timesnewromanmtextrabold');
$this->mono_fonts = array('');