Regarding Arabic font issue on AWS server having CentOS

Issues related to applications and software problems
Post Reply
gurpreet1137
Posts: 3
Joined: 2018/10/28 06:29:08

Regarding Arabic font issue on AWS server having CentOS

Post by gurpreet1137 » 2018/10/28 06:35:16

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.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Regarding Arabic font issue on AWS server having CentOS

Post by TrevorH » 2018/10/28 10:14:15

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

gurpreet1137
Posts: 3
Joined: 2018/10/28 06:29:08

Re: Regarding Arabic font issue on AWS server having CentOS

Post by gurpreet1137 » 2018/10/29 03:31:46

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.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Regarding Arabic font issue on AWS server having CentOS

Post by TrevorH » 2018/10/29 03:46:27

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

gurpreet1137
Posts: 3
Joined: 2018/10/28 06:29:08

Re: Regarding Arabic font issue on AWS server having CentOS

Post by gurpreet1137 » 2018/10/29 03:56:11

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?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Regarding Arabic font issue on AWS server having CentOS

Post by TrevorH » 2018/10/29 10:17:35

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

Post Reply