[FIXED] Using knife tool converts all contours to quadratic

Post your bug reports here. Include information that helps us to understand and reproduce the bug.
Post Reply
nabsltd
Posts: 132
Joined: Tue Oct 18, 2016 12:35 am

[FIXED] Using knife tool converts all contours to quadratic

Post by nabsltd »

In FontCreator 11.5.0.2427 (64-bit):

Using the knife tool to cut any contour in a glyph results in all the contours in the glyph being converted to quadratic. Since this can result in a change in the contours, it is not desired behavior.

In addition, it can also result in an exported font not being truly validated. This can happen because the quadratic contours in the glyph need to be converted to cubic for export (assuming they were cubic in the first place because it was a font with PostScript outlines). If the user doesn't notice and manually change the contours to cubic, they can have validated quadratic outlines in the glyph, and the glyph in the exported font can have points that don't pass validation, but the user will never know if they only work with the FontCreator project file (.fcp), and don't open and validate the exported font.
nabsltd
Posts: 132
Joined: Tue Oct 18, 2016 12:35 am

Re: Using knife tool converts all contours to quadratic

Post by nabsltd »

It looks like almost any manipulation of contours that might change the number of contours (knife, union, intersection, exclusion) will cause any contours selected at the time of the operation to convert from cubic to quadratic, even if the contours are not changed by the operation.

For example, draw a rectangle in an empty glyph, then do a "union" operation. Regardless of the type of contour before the union, after the union it will be quadratic, even though there was no need to change anything to take the "union".
janndk
Posts: 8
Joined: Fri Jul 12, 2019 5:45 pm
Location: Copenhagen, Denmark
Contact:

Re: Using knife tool converts all contours to quadratic

Post by janndk »

Anything new about this?
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9873
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Using knife tool converts all contours to quadratic

Post by Bhikkhu Pesala »

No change in FontCreator 12.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
janndk
Posts: 8
Joined: Fri Jul 12, 2019 5:45 pm
Location: Copenhagen, Denmark
Contact:

Re: Using knife tool converts all contours to quadratic

Post by janndk »

Hmm... FontCreator manual says:

"Note: Union, Intersection, Exclusion and Knife only work with contours made out of quadratic Bézier curves. If you use them with cubic curves, FontCreator will convert those contours to quadratic."

So this behavior seems to be intended, and not a bug. However, it's quite annoying when curve type suddenly changes :?
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9873
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Using knife tool converts all contours to quadratic

Post by Bhikkhu Pesala »

janndk wrote: Sat Aug 10, 2019 1:41 pmSo this behavior seems to be intended, and not a bug. However, it's quite annoying when curve type suddenly changes :?
No change in FontCreator 13. It may be easy to fix as convert to cubic is already available on the context menu.

The curve type is shown in the Status line so it is easy enough to check if you know that you may need to look for it. It does not show up in the Font Validator Wizard, presumably because it is valid to mix curves types in the same font. Perhaps a feature request is in order?
Curve Type.png
Curve Type.png (1.25 KiB) Viewed 4295 times
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
Post Reply