Class: Ucode::Models::Audit::CodepointDetail

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/ucode/models/audit/codepoint_detail.rb

Overview

Per-codepoint detail row, emitted only in --verbose mode.

Lives in a separate codepoints.json file under the directory emitter (TODO 13) so the main audit.json stays compact. Each row pairs UCD metadata (name, gc, script, age) with the font's glyph id and (optionally) a relative path to the rendered SVG.

Instance Method Summary collapse

Instance Method Details

#cp_idString

"U+XXXX" form for human display. Not serialized.

Returns:

  • (String)


39
40
41
# File 'lib/ucode/models/audit/codepoint_detail.rb', line 39

def cp_id
  format("U+%04X", codepoint)
end