Python scripting: Coloured glyphs selector
Maybe the most useless FontLab Studio script ever, as once said a fellow colleague, still it’s available for your pleasure:
A series of Python scripts for FontLab Studio that enables you to select all coloured glyphs in one click. Requires Robofab to work.
Download glyphcolorselector.zip
The collection works as follows:
- ALL.py lets you select all glyphs that are coloured, whatever their colour is.
- Blue.py selects blue-coloured glyphs (how surprising…)
- Cyan.py selects cyan glyphs
- Green.py selects green glyphs
- Pink.py selects pink glyphs
- Red.py selects red glyphs
The script can be tweaked by modifying this line:
if glyph.mark == 210:
Where 210 is the numerical value of Pink
Based upon my idea (I sometimes have strange ideas), the coding is however the work of fellow Karsten Lücke. Be sure to check his foundry and his delightful typefaces.
Edit: A few more scripts here: the microscripts article
