Hello,
I am using html-pdf npm for converting html to pdf. Html-pdf internally uses phantomjs which is used to convert html sring into pdf.
The problem I am facing is that arabic fonts are not showing properly in pdf.Kindly help me in installing custom fonts in centOS which can be used by phantomjs as custom fonts. Basically i am using AWS as my server having centOS intalled as operating system.
Please help me in this issue.
Thanks.
Regarding Arabic font issue on AWS server having CentOS
-
- Posts: 3
- Joined: 2018/10/28 06:29:08
Re: Regarding Arabic font issue on AWS server having CentOS
Do you have the fonts installed that we supply?
Code: Select all
# yum list \*arabic\*
Loaded plugins: priorities
722 packages excluded due to repository priority protections
Available Packages
google-noto-kufi-arabic-fonts.noarch 20141117-5.el7 base
google-noto-naskh-arabic-fonts.noarch 20141117-5.el7 base
google-noto-naskh-arabic-ui-fonts.noarch 20141117-5.el7 base
kde-l10n-Arabic.noarch 4.10.5-2.el7 base
layla-basic-arabic-fonts.noarch 2.0-1.el7 epel
python-pyarabic.noarch 0.4-3.el7 epel
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 3
- Joined: 2018/10/28 06:29:08
Re: Regarding Arabic font issue on AWS server having CentOS
I get the following result when i run command.
yum list \*arabic\*
Loaded plugins: priorities, update-motd, upgrade-helper
30 packages excluded due to repository priority protections
Available Packages
m17n-db-arabic.noarch 1.5.5-1.1.6.amzn1 amzn-main
Bsically I have majalla.ttf fonts installed in /usr/share/fonts/ directory.May be i am not able to install that fonts properly or something.
So,Kindly help me in installing custom fonts on Centos which can be used by phantomjs.
Phantomjs is working fine perfectly on MacOS but i am facing problem in CentOS.
Kindly assist.
yum list \*arabic\*
Loaded plugins: priorities, update-motd, upgrade-helper
30 packages excluded due to repository priority protections
Available Packages
m17n-db-arabic.noarch 1.5.5-1.1.6.amzn1 amzn-main
Bsically I have majalla.ttf fonts installed in /usr/share/fonts/ directory.May be i am not able to install that fonts properly or something.
So,Kindly help me in installing custom fonts on Centos which can be used by phantomjs.
Phantomjs is working fine perfectly on MacOS but i am facing problem in CentOS.
Kindly assist.
Re: Regarding Arabic font issue on AWS server having CentOS
Unfortunately it appears that you don't have a CentOS system at all, that's Amazon Linux. You'll need to ask them about that.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 3
- Joined: 2018/10/28 06:29:08
Re: Regarding Arabic font issue on AWS server having CentOS
Yes, I am using AWS as my ec2 instance which is having centOS installed as operating system. So is this problem from aws side or centOS side?
Re: Regarding Arabic font issue on AWS server having CentOS
It's not CentOS.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke