Skip to content

fontlabapp.glyphs.identity · declarations 001

Back to fontlabapp.glyphs.identity

GREY module-attribute

GREY

LIGHTNESS module-attribute

LIGHTNESS

mark_rgb

mark_rgb(mark: int) -> tuple[int, int, int] | None

Map a raw glyph.mark to RGB: 0 none, >1000 grey, else hue = mark - 1.

Encoding from a-src flcolors.cpp _mark2color; channels round to the nearest integer.

read

read(package: Any, glyph: Any) -> Identity

Read one glyph's identity; raise on any missing native attribute.

  • Unicodes come from package.fgPackage[name].unicodes (a-stub, b Glyport glyph_info); flGlyph has no Unicode binding and glyph.fgGlyph can clear lib.note (fl#8525). Lookup cost is unverified natively.
  • glyph.mark (a-stub, b) may run completeImport() on lazy glyphs (a-src flglyph.cpp).
  • Export is off for a noexport tag (a-stub tags) or a public.skipExportGlyphs entry.