Units used in bold, thin and hollow transformations
Units used in bold, thin and hollow transformations
Hello. Nowadays I am occasionally finding the need to use the thin/bold transformations via the Glyph Transformer wizard. It is absolutely unclear however as to what the numbers I am entering into the horizontal/vertical fields signify. Do they signify percentage of change, or do they signify absolute funit values, or what? Neither the interface nor the documentation clarifies this. Can anyone please throw light?
Previously I had posted viewtopic.php?f=3&t=3787 which is also related, but I still am not clear as to what these parameters are, which is why I am asking.
Previously I had posted viewtopic.php?f=3&t=3787 which is also related, but I still am not clear as to what these parameters are, which is why I am asking.
Shriramana Sharma
-
- Top Typographer
- Posts: 9886
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Units used in bold, thin and hollow transformations
Unless otherwise shown on the transform dialogue, then the units are always funits. If you use the Effects, Italic transformation, or the rotate transformation, then the dialogue shows that the units are in degrees and decimals of a degree.
If you use the scale transformation, the scale is in percentages.
Re: Units used in bold, thin and hollow transformations
Hmm, only experimentation reveals that the funits are doubled in the sense that if I ask FC to thin a glyph vertically by 10 funits, a vertical stroke width of 100 is actually reduced to 100 - 2 * 10 = 80, and likewise horizontally.Bhikkhu Pesala wrote:Unless otherwise shown on the transform dialogue, then the units are always funits.
So if w0 is the current width and w1 is the desired (smaller) width, then we should ask the wizard to thin the glyph horizontally by (w0-w1)/2. Likewise for height, do it vertically.
Conversely for boldening, if w0 is the current width and w1 is the desired (higher) width, the value is (w1-w0)/2. Likewise for height.
BTW can't these bold/thin transforms be unified into a single transform, with negative parameters meaning thinning and positive (default) means boldening?
And what is the reason for Glyph Transform not being undoable, which seems somewhat silly (sorry to say)?
Shriramana Sharma
-
- Moderator
- Posts: 11187
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Units used in bold, thin and hollow transformations
The amount of memory required to store the undo information can be way too big.jamadagni wrote:And what is the reason for Glyph Transform not being undoable, which seems somewhat silly (sorry to say)?
Re: Units used in bold, thin and hollow transformations
See all you need to store is the initial state and the final state. I don't think it is important to store each individual transform. So maybe if the number of glyphs operated upon is less than a certain number (say 10) then you can save it in the undo buffer. Otherwise you can throw the usual warning (reword it to "Transforms for more than ten glyphs cannot be undone") and do it as it is done now. Would this be possible?Erwin Denissen wrote:The amount of memory required to store the undo information can be way too big.jamadagni wrote:And what is the reason for Glyph Transform not being undoable, which seems somewhat silly (sorry to say)?
Shriramana Sharma
-
- Moderator
- Posts: 11187
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Units used in bold, thin and hollow transformations
It was a design decision to not allow undo there. It requires a lot of development efforts to implement it. I can add your request to our to-do list, but I believe there are more important things on it.
-
- Top Typographer
- Posts: 9886
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Units used in bold, thin and hollow transformations
To work around the undo problem, copy the selected glyphs to the clipboard, then perform the transformation. Paste the glyphs back immediately, then undo the paste operation. Now, if you want to try with different transformation parameters, you can undo and try again.
Re: Units used in bold, thin and hollow transformations
Hm? Undo is already there, no? Would it really be more complicated than:Erwin Denissen wrote:It was a design decision to not allow undo there. It requires a lot of development efforts to implement it. I can add your request to our to-do list, but I believe there are more important things on it.
Code: Select all
if len(selected_glyphs) > 10:
msgbox(opt.warning, "Operations on more than 10 glyphs cannot be undone.")
undobuffer.empty()
Yes bhante, you had mentioned this in your tutorial on glyph transformer. I just would like to avoid the trouble. Anyhow...Bhikkhu Pesala wrote:To work around the undo problem, copy the selected glyphs to the clipboard, then perform the transformation. Paste the glyphs back immediately, then undo the paste operation. Now, if you want to try with different transformation parameters, you can undo and try again.
Shriramana Sharma
Re: Units used in bold, thin and hollow transformations
I'm a little puzzled why the Validation wizard can be set to detect and fix errors and be undoable, but a glyph transform isn't.Erwin Denissen wrote:The amount of memory required to store the undo information can be way too big.jamadagni wrote:And what is the reason for Glyph Transform not being undoable, which seems somewhat silly (sorry to say)?
If you can undo changes to a lot of characters a 50,000 glyph font (like Arial Unicode) after the Validation wizard runs, why can't you undo a glyph transformation to even a single glyph? If you are worried about multiple glyph transforms eating up memory, then limiting to the last one on undo would be fine for 99% of use cases.
Also, FontCreator needs to be rebuilt for 64-bit, since you can't even buy a 32-bit Windows OS any more. That, plus memory at $5/GB means that memory shouldn't be an issue.
-
- Moderator
- Posts: 11187
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Units used in bold, thin and hollow transformations
Fair enough, we have added this enhancement to the to-do list, but don't expect it for the next couple of months.nabsltd wrote:I'm a little puzzled why the Validation wizard can be set to detect and fix errors and be undoable, but a glyph transform isn't.
We intend to release a 64-bit version with the next upcoming major release.