Skip to content

Commit

Permalink
Ajustes na minimo doDaCommon - sem impacto
Browse files Browse the repository at this point in the history
  • Loading branch information
robmachado committed May 31, 2024
1 parent 7715db9 commit df837a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Common/DaCommon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}
}

/**
Expand Down

0 comments on commit df837a8

Please sign in to comment.