Skip to main content

Module query

Module query 

Source
Expand description

Query construction and evaluation for typg.

A Query describes the font you want. An empty query matches every font. When multiple filters are set, they combine with AND logic: a match must satisfy every active criterion.

The same query model is reused for live scans, cached searches, and indexed searches, so filter behavior stays consistent across the CLI, HTTP server, and Python bindings.

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

Structs§

FamilyClassFilter
Filter for the OS/2 family-class field.
Query
Filter criteria for font search. Built with chained with_* methods.

Functions§

parse_codepoint_list
Parse a comma-separated list of codepoints or ranges into a Vec<char>.
parse_family_class
Parse an OS/2 family class specifier into a FamilyClassFilter.
parse_tag_list
Parse a slice of tag strings (e.g. "wght", "smcp") into Tag values.
parse_u16_range
Parse a single value or range of u16 numbers (e.g., “400” or “300-500”).