/** * @param string $family * @param array $styles * @param integer[] $color * @return boolean */ public function startStyleEmulation($family, array $styles, array $color) { $need_emulate = in_array('bold', $styles) && Font::isBuiltinUnicodeFont($family); if (!$need_emulate) { return false; } else { $this->pdf->setDrawColorArray($color); $this->pdf->setTextRenderingMode($this->pdf->GetLineWidth() * 0.1); return true; } }