[FIXED] Make glyph with multiple contours bolder bug
[FIXED] Make glyph with multiple contours bolder bug
Problem:
Sometimes when I make a glyph that has overlapping contours and I try to make them bolder,
it changes the direction of some contours, therefore, making some contours lighter, and the others bolder.
Suggested solution:
prevent changing the direction of the contours when performing a bold/thin effect.
Example:
How to reproduce:
1. download the attached font
2. select the glyph and bold it (20 horizontal 20 vertical)
Sometimes when I make a glyph that has overlapping contours and I try to make them bolder,
it changes the direction of some contours, therefore, making some contours lighter, and the others bolder.
Suggested solution:
prevent changing the direction of the contours when performing a bold/thin effect.
Example:
How to reproduce:
1. download the attached font
2. select the glyph and bold it (20 horizontal 20 vertical)
- Attachments
-
- make font bolder bug.fcp
- (4.45 KiB) Downloaded 644 times
-
- Top Typographer
- Posts: 9877
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Make glyph with multiple contours bolder bug
The bug is in your font. These contours should be joined with Get Union of Contours before applying any bold transformation.
That being said, bold and thin transformations will often introduce errors like intersecting contours. A lot of these could be avoided by implement the long-standing feature request for bold and thin transforms to use relatives values instead of absolute values.
That being said, bold and thin transformations will often introduce errors like intersecting contours. A lot of these could be avoided by implement the long-standing feature request for bold and thin transforms to use relatives values instead of absolute values.
Re: Make glyph with multiple contours bolder bug
I see that, but I want to keep the contours separate (because I still work on the font).Bhikkhu Pesala wrote: ↑Sat Apr 11, 2020 5:46 am These contours should be joined with Get Union of Contours before applying any bold transformation.
To my eyes, the contours should remain their direction (clockwise or counter clockwise) when a thin/bold function is done.
That's a nice feature request indeed, though I don't really think it relates to the problem I'm facing.Bhikkhu Pesala wrote: ↑Sat Apr 11, 2020 5:46 am That being said, bold and thin transformations will often introduce errors like intersecting contours. A lot of these could be avoided by implement the long-standing feature request for bold and thin transforms to use relatives values instead of absolute values.
-
- Top Typographer
- Posts: 9877
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Make glyph with multiple contours bolder bug
It is the same issue. The transform scripts move nodes by the defined number of funits, which can make them cross over themselves.
Re: Make glyph with multiple contours bolder bug
What is funits?Bhikkhu Pesala wrote: ↑Sat Apr 11, 2020 10:45 am It is the same issue. The transform scripts move nodes by the defined number of funits, which can make them cross over themselves.
-
- Top Typographer
- Posts: 9877
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Make glyph with multiple contours bolder bug
The font units (funits) or units per em are set on the General Tab of the Font Properties dialog. They are the units used on the rulers in the Glyph Edit Window.
The default is 2048 units/em but Apple fonts typically use 1000 units/em. Using the cursor keys moves a node by 10 funits, holding Ctrl limits the movement to 1 funit, while holding the Shift key increases the movement to 100 funits per keystroke. If I remember rightly, the glyph transform scripts assume 2048 funits per em, and adjust the movement automatically for other values.
Computers like powers of 2. If your fonts have fine detail, increase the default to 4096 or 8192 so that tiny circles are circles and not squircles.
Here is an animation of the bold transformation on my Mandala font, which illustrates the problem of nodes crossing over contours.
The default is 2048 units/em but Apple fonts typically use 1000 units/em. Using the cursor keys moves a node by 10 funits, holding Ctrl limits the movement to 1 funit, while holding the Shift key increases the movement to 100 funits per keystroke. If I remember rightly, the glyph transform scripts assume 2048 funits per em, and adjust the movement automatically for other values.
Computers like powers of 2. If your fonts have fine detail, increase the default to 4096 or 8192 so that tiny circles are circles and not squircles.
Here is an animation of the bold transformation on my Mandala font, which illustrates the problem of nodes crossing over contours.
Re: Make glyph with multiple contours bolder bug
Cool, thanks for explaining.
What is the expected result you want by making your letter bolder? Can you show?
What is the expected result you want by making your letter bolder? Can you show?
-
- Top Typographer
- Posts: 9877
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Make glyph with multiple contours bolder bug
If the transformation was proportional, not absolute, thick strokes would get much thicker, but narrow strokes would not change nearly as much. The Baseline, Cap Height, and x-height would not change at all.
In case of fonts like Mandala, where the stroke weights are even, that is not an issue, but perhaps the overlapping could be avoided somehow. It is a difficult puzzle to solve. I have had previous discussions with Erwin about this.
In case of fonts like Mandala, where the stroke weights are even, that is not an issue, but perhaps the overlapping could be avoided somehow. It is a difficult puzzle to solve. I have had previous discussions with Erwin about this.
Re: Make glyph with multiple contours bolder bug
I see.
That's a wonderful idea for a feature request!
Making a proportional bold/light effect is a very useful and I would like it as well, if its possible.
But I think it deserves its own thread.
To my understanding, my problem is different then yours.
The problem I'm facing is different and much a simpler problem to solve.
As you can see, when I make a font bold (that has overlapping contours), while all the contours are clockwise (which is good), when I perform thin/bold effect some of them turn counter-clockwise, therefore, making some contours thin instead of bold.
On the right glyph (green marked) I "solved" it by merging the contours as you said before performing the bold effect. But that's exactly the problem - I want to keep the contours seperate, I don't want to merge them.
On the left glyph (red marked) you can see that the contours are not merged (And I want to keep that way).
Again, I don't mind that its 'crossing' over the baseline and the proportion changes. That's actually a good thing in my case (it helps me shape the letter exactly the way I want).
That's why its a different problem than what you're saying.
Though, I'd love to support your feature request.
That's a wonderful idea for a feature request!
Making a proportional bold/light effect is a very useful and I would like it as well, if its possible.
But I think it deserves its own thread.
To my understanding, my problem is different then yours.
The problem I'm facing is different and much a simpler problem to solve.
As you can see, when I make a font bold (that has overlapping contours), while all the contours are clockwise (which is good), when I perform thin/bold effect some of them turn counter-clockwise, therefore, making some contours thin instead of bold.
On the right glyph (green marked) I "solved" it by merging the contours as you said before performing the bold effect. But that's exactly the problem - I want to keep the contours seperate, I don't want to merge them.
On the left glyph (red marked) you can see that the contours are not merged (And I want to keep that way).
Again, I don't mind that its 'crossing' over the baseline and the proportion changes. That's actually a good thing in my case (it helps me shape the letter exactly the way I want).
That's why its a different problem than what you're saying.
Though, I'd love to support your feature request.
-
- Top Typographer
- Posts: 9877
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Make glyph with multiple contours bolder bug
- Cut the vertical stem to the clipboard
- Run the bold transformation
- Paste the vertical stem from the clipboard
- Cut the horizontal strokes to the clipboard
- Run the bold transformation again
- Paste the horizontal strokes from the clipboard
I wonder if it is even possible for software to deal with unexpected situations like this. Garbage in, garbage out, is what one would expect. I notice that Erwin has not responded to the thread. Only he can know what is feasible.
-
- Moderator
- Posts: 11157
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Make glyph with multiple contours bolder bug
I think you've covered it all. I'm sure we can further improve the software, but what you explained is what can be done right now.Bhikkhu Pesala wrote: ↑Sat Apr 11, 2020 2:49 pm I wonder if it is even possible for software to deal with unexpected situations like this. Garbage in, garbage out, is what one would expect. I notice that Erwin has not responded to the thread. Only he can know what is feasible.
Re: Make glyph with multiple contours bolder bug
Thanks for sharing, I know this trick, I think I learned it from someone in the forum (probably you).Bhikkhu Pesala wrote: ↑Sat Apr 11, 2020 2:49 pmAs I said at the start; this is not a bug in FontCreator. The problem lies in the overlapping contours.
- Cut the vertical stem to the clipboard
- Run the bold transformation
- Paste the vertical stem from the clipboard
- Cut the horizontal strokes to the clipboard
- Run the bold transformation again
- Paste the horizontal strokes from the clipboard
I wonder if it is even possible for software to deal with unexpected situations like this. Garbage in, garbage out, is what one would expect. I notice that Erwin has not responded to the thread. Only he can know what is feasible.
I understand. Let's see what Erwin has to say, hoping both our problems can be solved.
Re: Make glyph with multiple contours bolder bug
Okay. Thanks for taking the time to read thisErwin Denissen wrote: ↑Sat Apr 11, 2020 2:51 pmI think you've covered it all. I'm sure we can further improve the software, but what you explained is what can be done right now.Bhikkhu Pesala wrote: ↑Sat Apr 11, 2020 2:49 pm I wonder if it is even possible for software to deal with unexpected situations like this. Garbage in, garbage out, is what one would expect. I notice that Erwin has not responded to the thread. Only he can know what is feasible.
-
- Moderator
- Posts: 11157
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Make glyph with multiple contours bolder bug
I think this issue is solved with more recent versions of FontCreator.Hafonton wrote: ↑Sat Apr 11, 2020 2:51 am Problem:
Sometimes when I make a glyph that has overlapping contours and I try to make them bolder,
it changes the direction of some contours, therefore, making some contours lighter, and the others bolder.
Suggested solution:
prevent changing the direction of the contours when performing a bold/thin effect.
Re: [FIXED] Make glyph with multiple contours bolder bug
I think so too!
I will let you know if I run into this issue again.
Thanks
I will let you know if I run into this issue again.
Thanks