lib/FPDF/src/fpdf.php 1 location
|
@@ 451-452 (lines=2) @@
|
| 448 |
|
{
|
| 449 |
|
// Add a TrueType, OpenType or Type1 font
|
| 450 |
|
$family = strtolower($family);
|
| 451 |
|
if($file=='')
|
| 452 |
|
$file = str_replace(' ','',$family).strtolower($style).'.php';
|
| 453 |
|
$style = strtoupper($style);
|
| 454 |
|
if($style=='IB')
|
| 455 |
|
$style = 'BI';
|
ufpdf/ufpdf.php 1 location
|
@@ 52-53 (lines=2) @@
|
| 49 |
|
$style='BI';
|
| 50 |
|
if(isset($this->fonts[$family.$style]))
|
| 51 |
|
$this->Error('Font already added: '.$family.' '.$style);
|
| 52 |
|
if($file=='')
|
| 53 |
|
$file=str_replace(' ','',$family).strtolower($style).'.php';
|
| 54 |
|
if(defined('FPDF_FONTPATH'))
|
| 55 |
|
$file=FPDF_FONTPATH.$file;
|
| 56 |
|
include($file);
|