Skip to main content

Module search

Module search 

Source
Expand description

Font metadata extraction and search.

This module opens font files, extracts searchable metadata from their OpenType tables, and evaluates that metadata against a Query. The same metadata model is used by live scans, cache files, and indexed search.

One file may yield multiple results because collection formats such as TTC and OTC can store several faces in a single container.

Made by FontLab https://www.fontlab.com/

Structs§

SearchOptions
Controls how the search engine runs: parallelism and traversal behavior.
TypgFontFaceMatch
A search result: one font face that matched the query.
TypgFontFaceMeta
Everything we know about a single font face, extracted from its binary tables.
TypgFontSource
Where a font face lives on disk.

Functions§

filter_cached
Filter pre-loaded font metadata against a query. No disk I/O.
search
Search directories for fonts matching a query. The main entry point.
search_streaming
Search directories and stream results as they’re discovered.