-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
Issue when using -webkit-text-stroke #292
Comments
I came here for the same reason! +1 |
Did you by any chance use the fonts from Google Fonts? |
I’m using the official files downloaded from your website. |
I also use the CDN: https://rsms.me/inter/inter.css |
Would you know how "boolean union" is performed on outlines/contours? I bet it is not trivial. |
The described algorithms operate on bitmaps or scan sweeps, i.e. during rendering not prior to it. It is rather expensive computationally. I was hoping that there was a good algorithm to merge outlines properly, which would be appropriate for this bug. Also, the overlap of the stroke paths is technically minute here unless you really track the winding number is a very special way. To summarize, it is not a trivial problem and the overlaps were accepted in variable fonts rather hastily. |
Describe the bug
When using css class
-webkit-text-stroke-color
&-webkit-text-stroke-width
to put a border fitting the text, there are some unwantend border. Like this :To Reproduce
Steps to reproduce the behavior:
<div>
t
,k
,&
,e
-webkit-text-stroke-color: red; -webkit-text-stroke-width: .8px; color: transparent
(it also works when setting a color to the text)Expected behavior
This should looks like this (here, using system font) :
Environment
The text was updated successfully, but these errors were encountered: