diff --git a/src/DejaVuSans-webfont.svg b/src/DejaVuSans-webfont.svg deleted file mode 100644 index 84589ef..0000000 --- a/src/DejaVuSans-webfont.svg +++ /dev/null @@ -1,146 +0,0 @@ - - - - -This is a custom SVG webfont generated by Font Squirrel. -Copyright : Copyright c 2003 by Bitstream Inc All Rights ReservedCopyright c 2006 by Tavmjong Bah All Rights ReservedDejaVu changes are in public domain -Foundry : DejaVu fonts team -Foundry URL : httpdejavusourceforgenet - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DejaVuSans.svg b/src/DejaVuSans.svg new file mode 100644 index 0000000..984b0ac --- /dev/null +++ b/src/DejaVuSans.svg @@ -0,0 +1,251 @@ + + + + +This is a custom SVG webfont generated by Font Squirrel. +Copyright : Copyright c 2003 by Bitstream Inc All Rights ReservedCopyright c 2006 by Tavmjong Bah All Rights ReservedDejaVu changes are in public domain +Foundry : DejaVu fonts team +Foundry URL : httpdejavusourceforgenet + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/SvgTextSizeCalculator.php b/src/SvgTextSizeCalculator.php index dd75e64..e34ff77 100644 --- a/src/SvgTextSizeCalculator.php +++ b/src/SvgTextSizeCalculator.php @@ -17,7 +17,7 @@ class SvgTextSizeCalculator implements TextSizeCalculatorInterface */ public function calculateWidth(string $text, int $size = self::TEXT_SIZE): float { - $font = SvgFont::fromFile(__DIR__ . '/DejaVuSans-webfont.svg'); + $font = SvgFont::fromFile(__DIR__ . '/DejaVuSans.svg'); $textUnicode = TextUnicodeConverter::convertTextToCodePoints($text);