Skip to content

Commit 0f975e6

Browse files
ENGCOM-1291: added GNU Free Font to be used by sales PDFs #14710
- Merge Pull Request #14710 from rossmc/magento2-1:bugfix/pdf-font-2.3-to-support-more-characters - Merged commits: 1. abd7be0
2 parents 651a556 + abd7be0 commit 0f975e6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
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
@@ -861,7 +861,7 @@ protected function _drawItem(
861861
protected function _setFontRegular($object, $size = 7)
862862
{
863863
$font = \Zend_Pdf_Font::fontWithPath(
864-
$this->_rootDirectory->getAbsolutePath('lib/internal/LinLibertineFont/LinLibertine_Re-4.4.1.ttf')
864+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerif.ttf')
865865
);
866866
$object->setFont($font, $size);
867867
return $font;
@@ -877,7 +877,7 @@ protected function _setFontRegular($object, $size = 7)
877877
protected function _setFontBold($object, $size = 7)
878878
{
879879
$font = \Zend_Pdf_Font::fontWithPath(
880-
$this->_rootDirectory->getAbsolutePath('lib/internal/LinLibertineFont/LinLibertine_Bd-2.8.1.ttf')
880+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerifBold.ttf')
881881
);
882882
$object->setFont($font, $size);
883883
return $font;
@@ -893,7 +893,7 @@ protected function _setFontBold($object, $size = 7)
893893
protected function _setFontItalic($object, $size = 7)
894894
{
895895
$font = \Zend_Pdf_Font::fontWithPath(
896-
$this->_rootDirectory->getAbsolutePath('lib/internal/LinLibertineFont/LinLibertine_It-2.8.2.ttf')
896+
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerifItalic.ttf')
897897
);
898898
$object->setFont($font, $size);
899899
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/LinLibertineFont/LinLibertine_Re-4.4.1.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/LinLibertineFont/LinLibertine_Bd-2.8.1.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/LinLibertineFont/LinLibertine_It-2.8.2.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.

0 commit comments

Comments
 (0)