-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
| Glyphs.defaults["com.eweracs.italify.angle"] = Glyphs.font.selectedLayers[0].master.italicAngle |
Just a question perhaps: Is this line a) safe and b) necessary?
a) It is possible to open a font with no layer selected. In that case it will store some sort of nil value into the defaults.
b) I looked at the code for all occurrences of this default value, and it never appears to me that it is required to read the angle from the defaults. You can instead always read it from the font when needed, you already default to 0 if it is nil.
What do you think? Could simplify things.
Metadata
Metadata
Assignees
Labels
No labels