/** * @polotno/core/fonts — shared font resolution. * * Single source of truth for: the Google Fonts css2 URL + `@font-face` parsing * + variant closeness-ladder, retrying/​classifying font fetch (429/Retry-After, * throttle-200, network vs 4xx), bounded-concurrency batch resolution, the * base-14 system-font table, and the strict/soft resolver. * Consumers (pdf-export, psd-import, svg/html-export) take `@polotno/core` as * a regular dependency and import this subpath. */ export { fetchFontResource, mapWithConcurrency, looksLikeFont, type ByteCache, type FetchFontOptions, } from './fetch.js'; export { googleFontUrl, googleFontVariantUrl, parseGoogleFontFaces, pickVariant, pickFontWeight, type GoogleFontFace, type GoogleFontFaces, } from './google-fonts.js'; export { parseUnicodeRange, rangesCover, unicodeRangeIntersects, type UnicodeRange, } from './unicode-range.js'; export { fetchGoogleFontFaces, _clearFacesCache, type DiscoverOptions, } from './discover.js'; export { resolveSystemFont, type SystemFontResolution, type SystemFontMetrics, } from './system-fonts.js'; export { resolveFontVariant, type FontMode, type ResolveOptions, type ResolvedFont, } from './resolve.js'; export { resolveFontFaceStyles, type FontFaceStyle } from './font-face.js'; export { cssFontFamily } from './css-font-family.js'; export { polotnoError, type FontFailedReason, type PolotnoError, type PolotnoErrorCode, } from './errors.js';