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

Fix warnings for icon font without space inside PDF/A, add tests #304

Merged
merged 1 commit into from
Dec 7, 2018
Merged

Fix warnings for icon font without space inside PDF/A, add tests #304

merged 1 commit into from
Dec 7, 2018

Conversation

zimmi
Copy link
Contributor

@zimmi zimmi commented Dec 7, 2018

Googles MaterialIcons-Font does not contain a space character. When using PDF/A, the layout algorithm tries to eagerly find out the width of the space character. This does not happen when PDF/A is not used.
I changed the algorithm to only query for the width if there is actually a space inside the element.

Added tests to verify the fix (the PDF/A one failed previously).

@danfickle
Copy link
Owner

It failed because we always use the built in serif as a fallback if PDF/A conformance is not required. Your code looks fine so merging now. Thanks!

@danfickle danfickle merged commit 4a61489 into danfickle:open-dev-v1 Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants