Skip to content

CentOS text does not render #37

Closed
Closed
@strunkie30

Description

@strunkie30

I try to make a PDF with but my fonts does not render.
All my pdf's looks like this: http://kevinmeijer.com/html-pdf-9072.pdf

I'am on CentOS 6.

Activity

changed the title [-]CentOS text isn't rendering[/-] [+]CentOS text does not render[/+] on Jun 8, 2015
strunkie30

strunkie30 commented on Jun 8, 2015

@strunkie30
Author

Solved by install system fonts.

SFantasy

SFantasy commented on Jul 29, 2015

@SFantasy

@strunkie30 Hi, I'm using this module and got the same question as you mentioned.

I'm not clear about "install system fonts", is that meaning that I should install fonts using in my HTML file on my server(CentOS)?

strunkie30

strunkie30 commented on Jul 29, 2015

@strunkie30
Author

The PDF printer can't print your document because a clean CentOS installation does not include fonts.
Windows and OSx has by default some fonts installed: https://en.wikipedia.org/wiki/List_of_typefaces_included_with_OS_X

You can find multiple fontpacks on the internet for CentOS:
http://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-microsoft-truetype-fonts-in-centos-6-rhel-6.html#axzz3hGwfK1Gw

If you are using custom fonts from Google fonts or Typekit you can append them normaly, your fonts will be rendered fine. But Arial is not included in CentOS.

Sorry for my bad english 😄

marcbachmann

marcbachmann commented on Jul 29, 2015

@marcbachmann
Owner

@strunkie30 thanks for answering

SFantasy

SFantasy commented on Jul 29, 2015

@SFantasy

@strunkie30

Thanks, I've solve the problem by

yum install cjkuni-ukai-fonts 

Although the fonts looks a little strange, maybe I should find another fonts 😃

marcbachmann

marcbachmann commented on Jul 29, 2015

@marcbachmann
Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @marcbachmann@SFantasy@strunkie30

        Issue actions

          CentOS text does not render · Issue #37 · marcbachmann/node-html-pdf