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 Glyportglyph_info);flGlyphhas no Unicode binding andglyph.fgGlyphcan clearlib.note(fl#8525). Lookup cost is unverified natively. glyph.mark(a-stub, b) may runcompleteImport()on lazy glyphs (a-srcflglyph.cpp).- Export is off for a
noexporttag (a-stubtags) or apublic.skipExportGlyphsentry.