Skip to content

fontlab_glyport.model.custom_info_discovery · declarations 001

Back to fontlab_glyport.model.custom_info_discovery

URL module-attribute

URL

candidate_folders

candidate_folders(path: str, *, home: str) -> list[str]

The folder, its Info folder, the parent and its Info folder, in that order and without deduplication (the parent pair is omitted at home).

POSIX root has itself as parent; repeated root candidates remain present. Home is supplied explicitly, already expanded, without reading process state.

discover_folder

discover_folder(path: str, *, entries: Callable[[str], Iterable[str] | None], resolve: Callable[[str], str | None], make_url: Callable[[str], URL | None]) -> list[URL] | None

Filter before resolution, preserving nil, order and duplicate URLs.

Provider exceptions escape immediately; earlier provider effects remain.

discover_local

discover_local(folders: Iterable[str] | None, *, find_in_folder: Callable[[str], list[URL] | None]) -> list[URL]

Concatenate the matches of each supplied folder; candidate creation is separate.

is_glyph_data_name

is_glyph_data_name(name: str) -> bool

GlyphData.xml, or GlyphData_*.xml (case-sensitive).