-
Notifications
You must be signed in to change notification settings - Fork 219
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
The picture does not match the text #77
Comments
Are you speaking of the padding? Does the following fix it? http://jsfiddle.net/cburgmer/jov9kojf/1/ It seems that HTML snippets passed to |
Thanks! I was not attentive! :) |
http://jsfiddle.net/cburgmer/jov9kojf/1/ |
Font rendering is a pretty complex thing and AFAIK much of that is delegated to the host operating system. It might be difficult to find an easy work-around for this issue here. If you look at http://jsfiddle.net/jov9kojf/2/ the overlay shows that beginning with the first list of f's the character stream is offset by one character in Chrome. Firefox renders a near complete match, only the line under the text is offset by a pixel. There might be some CSS properties that can influence that. |
It looks like Setting it by default though might not be a good idea as the browser is allowed to disable kerning for "normal" rendering (unless explicitly set in CSS), so that overwriting it for |
It's resolving the issue. Thank you for help and for your library! |
I've documented the kerning issue in the wiki https://github.com/cburgmer/rasterizeHTML.js/wiki/Browser-issues/_compare/0a730c1eda1858a3f2b98a401d70c8eb0f6c2a6d...b014ae6fb4192aadafa5d64af9ec05354f1aeb25. Thanks for providing feedback! |
Maybe am I doing something wrong? My HTML does not match the picture. Can you help me?http://jsfiddle.net/Alkamenos/jov9kojf/
The text was updated successfully, but these errors were encountered: