first commit
This commit is contained in:
23
vendor/endroid/qr-code/src/Label/Font/OpenSans.php
vendored
Normal file
23
vendor/endroid/qr-code/src/Label/Font/OpenSans.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Endroid\QrCode\Label\Font;
|
||||
|
||||
final class OpenSans implements FontInterface
|
||||
{
|
||||
public function __construct(
|
||||
private int $size = 16
|
||||
) {
|
||||
}
|
||||
|
||||
public function getPath(): string
|
||||
{
|
||||
return __DIR__.'/../../../assets/open_sans.ttf';
|
||||
}
|
||||
|
||||
public function getSize(): int
|
||||
{
|
||||
return $this->size;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user