Skip to content

Commit

Permalink
Fix custom font example
Browse files Browse the repository at this point in the history
The real implementation doesn't take a path parameter.
  • Loading branch information
imliam authored Aug 12, 2024
1 parent 74a408b commit 5c29437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ use SimonHamp\TheOg\Interfaces\Font;

class CustomFont implements Font
{
public function path(string $path): string
public function path(): string
{
return '/path/to/your/font/source/file.ttf';
}
Expand Down

0 comments on commit 5c29437

Please sign in to comment.