Skip to content

fontlabapp.glyphs.identity_tools.glyph_labels.select_by_mark

select_by_mark

Select glyphs in the Font window by their mark colour.

What it does: Lists every mark colour used in the font (and unmarked glyphs) with a swatch and a count. Pick one or more rows and click Select, or double-click a row. Optionally add to the current selection. Nothing in the font changes.

How it works: Group the current font's glyphs by native mark value, then draw swatches and counts. Selection goes through the shared Names panel source guard.

Why this design: Colour groups can identify a work batch without requiring a persistent naming convention.

How to use: Run Names > Select by Mark. Pick one or more rows and press Select, or double-click a row. Enable Add to the current selection when the old selection must remain.

Benefit: Turn existing mark colours into a Font-window selection while keeping the stored marks unchanged.

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
HUES attribute
KEY attribute
QtCore attribute (shared captured text)
QtGui attribute (shared captured text)
TITLE attribute
font_marks function () -> list[tuple[str, int]] [(glyph name, mark)] for the current font, in font order.
font_window_selection function () -> list[str] Read exact Font window selection through the shared helper, no fallback.
groups function (marks: list[tuple[str, int]]) -> list[tuple[int, list[str]]] [(mark, [names])], marked colours by hue first, unmarked last.
main function () -> Any Open or replace this owned modeless Names panel.
mark_color function (mark: int, lightness: int=150) -> Any | None The QColor FontLab shows for a mark value, or None for no mark.
mark_label function (mark: int) -> str Describe native mark hue or grey value; zero means unmarked.
muted attribute (shared captured text)
swatch function (mark: int, size: int=16) -> Any Paint a native mark icon; always release the owned painter.