question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Path Stroking is Hideous

See original GitHub issue

I’m testing with converting Glyph to PathData and drawing the paths to the screen and then stroking, but I’m ending up with really ugly stroking:

screenshot from 2017-10-06 16-53-23

This is using Open Sans from GoogleFonts. Is there something I need to do to make this stroke properly?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
axkibecommented, Oct 7, 2017

Because font hinting is a way more sophisticated way to round properly to the grid.

https://blog.idrsolutions.com/2013/12/what-is-font-hinting/

Or simply said, a deliberate way that decides for each value to round down or up for minimal errors due to rasterization. (rounding)

0reactions
darkfrog26commented, Oct 8, 2017

@axkibe you’re right regarding drawing text, but the adjustment was a global one applying to all contextual drawing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outline stroke from path in Illustrator
Is there a way to outline a path in a Devide-like way? I want the object to be like the first cross, instead...
Read more >
Empty space between SVG paths - Stack Overflow
Here is an image showing the empty space between the paths. enter image description here. Here is the code for the SVG path,...
Read more >
Inkscape Text to path keeps the Stroke and not the Fill when ...
Using Inkscape with Cutters/Plotters Inkscape Text to path keeps the Stroke and not the Fill ... causing the wood to be decimated and...
Read more >
Draw SVG - Path to stroke problems - GSAP - GreenSock
Draw SVG - Path to stroke problems ... You can see the first one is a nice curve, but as that stroke gets...
Read more >
Path join type not correct in first node (on smaller width ) - GitLab
Set round join in stroke style, have a small stroke width (0.5-2.5 px). What happened? Every join gets rounded except the first node,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found