Page 1 of 1

[CLOSED] Cut and Paste Bug

Posted: Mon Jun 08, 2020 11:20 am
by Bhikkhu Pesala
Using FontCreator 13.0.0.2648

Before Cut
Before Cut.png
Before Cut.png (2.85 KiB) Viewed 3334 times
After Paste
Paste special with colour and overrule same codepoints. The glyph is a single colour glyph and has no other colour glyph members.
After Paste.png
After Paste.png (3.18 KiB) Viewed 3334 times
After Copy Paste
Paste special with colour and overrule same codepoints.
After Copy Paste.png
After Copy Paste.png (3.76 KiB) Viewed 3334 times

Re: Cut and Paste Bug

Posted: Mon Jun 08, 2020 12:47 pm
by Erwin Denissen
I see. It is more complex than we expected, so it might not always be possible to correctly cut-copy-paste, as it depends on the internal structure of the font, and that could have changed.

We have just fixed one issue related to copy-and-paste of color outlines, but that is not helping with cut-and-paste.

For color outlines, with both cut and copy we copy the glyph index of the color glyph members to clipboard. A cut will change the glyph index of all glyphs after the cut glyph(s), so that will cause issues. If we use glyph names, one could change a glyph name between cut and paste, so even that is not guaranteed to work, but might be better. The next upcoming update will use that, so we can see if that helps.

Re: Cut and Paste Bug

Posted: Mon Jun 08, 2020 3:06 pm
by Erwin Denissen
Here is another update with the suggested change. Let us know if this works.

https://www.high-logic.com/tmp/fontcrea ... 50-x64.exe

Re: Cut and Paste Bug

Posted: Mon Jun 08, 2020 5:25 pm
by Bhikkhu Pesala
Copy and Cut / Paste seem to work as expected as long as one selects Both Color and Outlines on the paste special dialog.

Re: [CLOSED] Cut and Paste Bug

Posted: Thu Jun 11, 2020 7:28 pm
by Erwin Denissen
That is because the color glyph member uses its own monochrome outline.