Open SathishDreamorbit opened 6 years ago
Hi @SathishDreamorbit. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me $VERSION instance
where $VERSION
is version tags (starting from 2.2.0+) or develop branches (for example: 2.3-develop).
For more details, please, review the Magento Contributor Assistant documentation.
@SathishDreamorbit do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
Hi @engcom-backlog-nazar. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[x] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[x] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[x] 4. Verify that the issue is reproducible on 2.3-develop
branchDetails
- Add the comment @magento-engcom-team give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[x] 5. Verify that the issue is reproducible on 2.2-develop
branch. Details
- Add the comment @magento-engcom-team give me 2.2-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop
branch, please add the label Reproduced on 2.2.x
[x] 6. Add label Issue: Confirmed
once verification is complete.
[x] 7. Make sure that automatic system confirms that report has been added to the backlog.
@engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-95260
, MAGETWO-95261
were created
This is a problem with fonts. The stock font is FreeSerif and it doesn't have chinese characters, you can simply edit this piece of code:
protected function _setFontRegular($object, $size = 7)
{
$font = \Zend_Pdf_Font::fontWithPath(
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/custom_font.ttf')
);
$object->setFont($font, $size);
return $font;
}
in app/code/Magento/Sales/Model/Order/Pdf/AbstractPdf.php
line 856
and in lib/internal/GnuFreeFont/ you add your font with chinese characters.
It doesn't support Hindi either. The symbol of Rupees is displayed as []?
@Magento team,
Let me know the status of the issue.
@dklapan I have tried the steps. However, I didn't get the respective font files for Chinese language. Could you please share the font files if you have.
Hi @SathishDreamorbit You don't need this files just copy paste this -> 蔣介石蔣介石蔣介石蔣介石蔣介石蔣介石蔣介石蔣介石蔣介石蔣介石
@engcom-backlog-nazar Could you please explain the steps in detail?
@SathishDreamorbit oh.. sorry i'm confusing a little bit, I thought you need steps to reproduce :)
1 - get font with chinese characters.
2 - put in to lib/internal/GnuFreeFont/
3 - in app/code/Magento/Sales/Model/Order/Pdf/AbstractPdf.php line 856
change $this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/FreeSerif.ttf')to ->
$this->_rootDirectory->getAbsolutePath('lib/internal/GnuFreeFont/add your font with chinese characters..ttf')
@engcom-backlog-nazar
Yes, I have tried the solution. But we are unable to get the supported Chinese Characters font files. In Google, we did not receive any Chinese Font file with .ttf format. If we convert and upload it, then its not readable one and throwing an error in ZendFramework.
For Existing Magento 2 website, we cannot override framework.
Hi @engcom-Bravo. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:
[ ] 1. Add/Edit Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 2. Verify that the issue is reproducible on 2.3-develop
branchDetails
- Add the comment @magento give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.
Still facing this issue on 2.4-develop
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.magento.com/browse/AC-833
Hi @SathishDreamorbit ,
Thanks for your reporting and collaboration. We have re-verified the issue in latest 2.4-develop instance and the issue is reproducible. Kindly refer the screenshots.
Steps to reproduce -
Thanks.
Preconditions
2.3-develop
Steps to reproduce
Expected result
Actual result