Skip to content

Commit b38976b

Browse files
committed
replaced Noto with GNU Free Font
1 parent e44c91f commit b38976b

File tree

10 files changed

+6
-208
lines changed

10 files changed

+6
-208
lines changed

app/code/Magento/Sales/Model/Order/Pdf/AbstractPdf.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ protected function _drawItem(\Magento\Framework\DataObject $item, \Zend_Pdf_Page
857857
protected function _setFontRegular($object, $size = 7)
858858
{
859859
$font = \Zend_Pdf_Font::fontWithPath(
860-
$this->_rootDirectory->getAbsolutePath('lib/internal/NotoSerifFont/NotoSerif-Regular.ttf')
860+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerif.ttf')
861861
);
862862
$object->setFont($font, $size);
863863
return $font;
@@ -873,7 +873,7 @@ protected function _setFontRegular($object, $size = 7)
873873
protected function _setFontBold($object, $size = 7)
874874
{
875875
$font = \Zend_Pdf_Font::fontWithPath(
876-
$this->_rootDirectory->getAbsolutePath('lib/internal/NotoSerifFont/NotoSerif-Bold.ttf')
876+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerifBold.ttf')
877877
);
878878
$object->setFont($font, $size);
879879
return $font;
@@ -889,7 +889,7 @@ protected function _setFontBold($object, $size = 7)
889889
protected function _setFontItalic($object, $size = 7)
890890
{
891891
$font = \Zend_Pdf_Font::fontWithPath(
892-
$this->_rootDirectory->getAbsolutePath('lib/internal/NotoSerifFont/NotoSerif-Italic.ttf')
892+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerifItalic.ttf')
893893
);
894894
$object->setFont($font, $size);
895895
return $font;

app/code/Magento/Sales/Model/Order/Pdf/Items/AbstractItems.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function getItemOptions()
338338
protected function _setFontRegular($size = 7)
339339
{
340340
$font = \Zend_Pdf_Font::fontWithPath(
341-
$this->_rootDirectory->getAbsolutePath('lib/internal/NotoSerifFont/NotoSerif-Regular.ttf')
341+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerif.ttf')
342342
);
343343
$this->getPage()->setFont($font, $size);
344344
return $font;
@@ -353,7 +353,7 @@ protected function _setFontRegular($size = 7)
353353
protected function _setFontBold($size = 7)
354354
{
355355
$font = \Zend_Pdf_Font::fontWithPath(
356-
$this->_rootDirectory->getAbsolutePath('lib/internal/NotoSerifFont/NotoSerif-Bold.ttf')
356+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerifBold.ttf')
357357
);
358358
$this->getPage()->setFont($font, $size);
359359
return $font;
@@ -368,7 +368,7 @@ protected function _setFontBold($size = 7)
368368
protected function _setFontItalic($size = 7)
369369
{
370370
$font = \Zend_Pdf_Font::fontWithPath(
371-
$this->_rootDirectory->getAbsolutePath('lib/internal/NotoSerifFont/NotoSerif-Italic.ttf')
371+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerifItalic.ttf')
372372
);
373373
$this->getPage()->setFont($font, $size);
374374
return $font;
3.15 MB
Binary file not shown.
1.25 MB
Binary file not shown.
900 KB
Binary file not shown.

lib/internal/NotoSerifFont/LICENSE.txt

Lines changed: 0 additions & 202 deletions
This file was deleted.
-362 KB
Binary file not shown.
Binary file not shown.
-316 KB
Binary file not shown.
-342 KB
Binary file not shown.

0 commit comments

Comments
 (0)