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

Artifacts close to start/end points #16

Closed
GoogleCodeExporter opened this issue Aug 11, 2015 · 4 comments
Closed

Artifacts close to start/end points #16

GoogleCodeExporter opened this issue Aug 11, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link


Freetype-go generates artifacts close to start and end path points,
output differs from Freetype-C.

Font is automatically converted from C to Q by FontForge, no problems detected.
Rearanged canonical start point to leftmost on the contour produces expected 
output.


Original issue reported on code.google.com by phil...@seznam.cz on 20 Feb 2015 at 9:48

Attachments:

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Reduced artifact example mapped to "1", and correct to "0" with start on the 
leftmost contour point.
This is tolerated by freetype-C.

Original comment by phil...@seznam.cz on 21 Feb 2015 at 12:48

Attachments:

@GoogleCodeExporter
Copy link
Author


Aforementioned problem is due to freetype-go assumes first path point as 
on-curve one.

Please see my proposed rewrite of drawContour() in 
code.google.com/p/freetype-go/freetype/freetype.go, it is almost camelcased 
FT_Decompose_Curve function.
It can be tested with attached font for on-on, on-off, off-on and off-off 
first-last curve points, mapped to 0-3.


Original comment by phil...@seznam.cz on 23 Feb 2015 at 9:25

Attachments:

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision 46c3056cafbb.

Original comment by nigel...@golang.org on 9 Mar 2015 at 12:32

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant