Skip to content

Commit

Permalink
Merge pull request #606 from robmachado/master
Browse files Browse the repository at this point in the history
Ajustes na minimo do DaCommon::class - sem impacto
  • Loading branch information
robmachado authored May 31, 2024
2 parents 93ae550 + df837a8 commit fe0160d
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 fe0160d

Please sign in to comment.