Skip to content

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