Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Letter spacing is off with mixed fonts #342

Closed
daliuss opened this issue Mar 29, 2019 · 1 comment
Closed

CSS Letter spacing is off with mixed fonts #342

daliuss opened this issue Mar 29, 2019 · 1 comment

Comments

@daliuss
Copy link

daliuss commented Mar 29, 2019

In my case users from around the world can contribute to a PDF that is generated from the input. I have mixed different fonts to support glyphs from around the world.

            font-family: 'Hind', 'Meiryo', sans-serif;
            font-weight: normal;
            letter-spacing: 0.5pt

And try to render the multinational text:

<span>Hindi नमस्त Hiragana ひらがな Katakana カタカナ</span>

A result with letter spacing:

image

A result without letter spacing:

image

I made a small project to reproduce this: https://github.com/daliuss/openhtmltopdf-playground

@daliuss
Copy link
Author

daliuss commented Apr 29, 2019

Your'e awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants