Skip to content

fontlabapp.glyphs.selection.mark_colors

mark_colors

Add different mark colours to the active Font-window selection.

Independently adapted from Pedro Arilla's Labels/Select different colour.py, which credits Rainer Erich Scheichelbauer's Select Different Color. Freeze the initial colour set, then add displayed glyphs of every other colour. Keep the initial selection. Empty selection is a no-op. Native acceptance is pending.

Classes

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
plan function (glyphs: tuple[GlyphMark, ...]) -> tuple[int, ...] Return candidate indices using only the original selected-colour set.
select_different_mark_colours function () -> tuple[str, ...] Add displayed different-colour glyphs; return newly selected names.