Closed larsenwork closed 9 years ago
Should be easy enough.
:smiley:
Just to clarify, the build option for this will only be for multiple replacements. Single swaps are still more efficient if you give the glyph name.
In order to swap glyphs based on a lookup table, you have to iterate over every single glyph to check if it matches against a sublookup. Fontforge as library is already very slow, so this would be awfully inefficient and cause builds to take 6x longer.
Only use this where absolutely necessary :smiley:
ok, maybe it's better to make it a separate font instead: e.g. "Monoid-Retina" or something like it.
For things like Retina where it is more than 5 glyphs swapped at a time but far less than the entire set of glyphs, this approach is fine.
I'm just saying: don't use SwapLookup
to swap a single glyph. Just use Swap
like you've been using.
Yeah...knowing me retina will be >half of the glyphs at some point so might as well separate it now :)
Haha, alright. Well, I implemented SwapLookup for future use.
I'm currently adding versions optimised for high-res of some the letters letters (may end up being 50-100 letters) and to add those in build.py can be a bit repetitive so it would ultimately be great to be able to type e.g.
instead of
https://github.com/khaledhosny/deotfy