function GetStringWidth($s) { if ($this->CurrentFont['type'] == 'Type0') { return $this->GetMBStringWidth($s); } else { return parent::GetStringWidth($s); } }