Constants§
- CONTENT_
DEDUP_ SAMPLE_ BYTES - Size (in bytes) of the head/tail samples taken by
content_dedup_hash_u64. - FONT_
EXTENSIONS - Known font file extensions (lowercase).
Functions§
- collect_
font_ files - Breadth-first walk of a directory yielding paths to files with recognized font extensions.
- content_
dedup_ hash_ u64 - Deterministic 64-bit “cheap” content hash derived from
(file_size, first 4 KiB, last 4 KiB). - content_
hash_ u64 - Deterministic 64-bit content hash over an arbitrary byte slice.
- is_
font_ file - Check if a file has a recognized font extension.
- normalize_
family_ name - Normalize a family/font name for comparison: lowercase, strip all non-alphanumeric characters.