From df837a8620d3c1596b34ddf41ca650852f6f3f5f Mon Sep 17 00:00:00 2001 From: robmachado Date: Fri, 31 May 2024 14:29:37 -0300 Subject: [PATCH] Ajustes na minimo doDaCommon - sem impacto --- src/Common/DaCommon.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Common/DaCommon.php b/src/Common/DaCommon.php index 4dad23f7..35bde5bf 100644 --- a/src/Common/DaCommon.php +++ b/src/Common/DaCommon.php @@ -220,6 +220,7 @@ public function render( /** * Add the credits to the integrator in the footer message * @param string $message Mensagem do integrador a ser impressa no rodapé das paginas + * @param bool $powered * @return void */ public function creditsIntegratorFooter($message = '', $powered = true) @@ -234,7 +235,13 @@ public function creditsIntegratorFooter($message = '', $powered = true) */ public function setDefaultFont(string $font = 'times') { - $this->fontePadrao = $font; + $fonte = strtolower($font); + if (in_array($fonte, ['times', 'arial', 'helvetica'])) { + if ($fonte === 'arial') { + $fonte = 'helvetica'; + } + $this->fontePadrao = $fonte; + } } /**