googlefonts / fontra

A browser-based font editor
https://fontra.xyz
GNU General Public License v3.0
493 stars 21 forks source link

Locked glyph can be changed via python script #1503

Open ollimeier opened 3 months ago

ollimeier commented 3 months ago

I noticed that a locked glyph can be changed via python code. I am wondering if this is the intended behaviour or not?

justvanrossum commented 3 months ago

Missing some context. What kind of Python code?

Either way, the lock is just a light mechanism to prevent accidental editing. Scripting isn’t really in the scope of this feature.

ollimeier commented 3 months ago

Sorry for missing the context: I just noticed that I was able to change the glyph note of a locked character in the unittests (via python) and was wondering if this is intended behaviour or not?