Custom Colour labels

Long shot, but I don’t suppose there’s a way that one can use custom colour values for the glyph/layer colours?

I know there’s more than enough choice already, and that the colours are easily distinguishable from each other and varied; but I could use the ability to control the exact colour value without any conversion on import/export. UI would be gold, but even via the API would be good - it appears that it’s limited to setting by an index integer at present.

1 Like

You can fun stuff like this:

from Foundation import NSColor
count = float(len(Font.glyphs))
idx = 0.0
for g in Font.glyphs:
	color = NSColor.colorWithHue_saturation_brightness_alpha_(idx / count, 0.8, 0.8, 1)
	g.colorObject = color
	idx += 1.0

there are some more options, check docu.glyphsapp.com

2 Likes