awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
typekit avatar

typekit/webfontloader

0
View on GitHub↗
9,255 stars·633 forks·JavaScript·Apache-2.0·3 vues

Webfontloader

Webfontloader est une bibliothèque JavaScript et une API standardisée pour récupérer et gérer les polices web provenant de multiples fournisseurs externes et feuilles de style personnalisées. Elle fonctionne comme un gestionnaire d'état de chargement de polices qui coordonne la récupération des assets typographiques via une interface unifiée.

Le projet se concentre spécifiquement sur la prévention du flash de texte invisible en gérant les états de chargement et les timeouts. Il se distingue en fournissant un mécanisme pour synchroniser la typographie à travers différents contextes de navigation, incluant la capacité d'injecter une logique de chargement de police dans les fenêtres enfants et les iframes.

La bibliothèque suit le cycle de vie du chargement des polices pour déclencher des callbacks JavaScript et appliquer des classes CSS à la racine du document. Ces capacités permettent un contrôle précis sur les transitions visuelles, incluant l'utilisation de styles de secours lorsque le rendu de la police dépasse une durée définie.

Features

  • Font Loading Libraries - Provides a comprehensive JavaScript interface for orchestrating web font loading with standardized event tracking and state management.
  • Web Font Loaders - Provides a unified library for fetching and integrating web fonts from multiple external providers.
  • Loading Timeouts - Implements configurable durations for font requests to trigger fallback styles if rendering is delayed.
  • FOIT Prevention - Provides a specialized system to prevent the flash of invisible text using loading states and timeouts.
  • Font Loading Transitions - Manages loading states and timeouts to eliminate the flash of invisible text before fonts render.
  • Lifecycle Event Hooks - Triggers asynchronous callbacks at specific stages of the font loading process to respond to state changes.
  • Loading Timeout Controllers - Implements programmatic timers to define maximum wait times for font rendering before switching to fallback styles.
  • Cross-Provider Font Loaders - Unifies the fetching of fonts from multiple distinct providers into a single standardized API.
  • Loading State Tracking - Monitors the progress of font loading to trigger UI changes or callbacks when fonts are requested, rendered, or fail.
  • Loading Event Coordination - Triggers JavaScript callbacks and document style updates during the loading lifecycle to manage visual transitions.
  • Loading State Managers - Orchestrates UI updates and CSS class application based on the current loading status of fonts.
  • Provider Abstractions - Provides a unified interface to normalize font requests across various third-party typography providers.
  • Font Glyph Validation - Verifies the correct rendering of specific font subsets and private glyphs using character strings.
  • Font Glyph Verification - Verifies the presence of required glyphs in custom font sources using configurable test strings.
  • Cross-Context Font Loading - Directs font loading requests from a parent window into same-origin iframe child contexts.
  • Font Loading Behavior Controls - Allows modification of loading parameters and target windows to optimize typography rendering.
  • Font Renderers - Tracks when fonts are requested or rendered to provide precise control over the visual presentation.
  • Render Detection - Measures character dimensions to verify that a font has successfully rendered in the browser viewport.
  • Font Synchronizers - Provides mechanisms to propagate font loading states and styles from a parent window into embedded iframe contexts.
  • DOM-Driven State Management - Applies CSS classes to the document root to manage state and visual transitions during font retrieval.
  • Asset Loading Injection - Injects font loading logic into child window frames to ensure typography consistency across embedded documents.
  • Font Management - Control font loading behavior and events.
  • Typography Libraries - Library for controlling web font loading.
  • Web Typography Utilities - Control over font loading via @font-face.

Historique des stars

Graphique de l'historique des stars pour typekit/webfontloaderGraphique de l'historique des stars pour typekit/webfontloader

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Webfontloader

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Webfontloader.
  • bramstein/fontfaceobserverAvatar de bramstein

    bramstein/fontfaceobserver

    4,338Voir sur GitHub↗

    Fontfaceobserver is a webfont availability detector and developer tool designed to synchronize typography loading with page rendering. It provides a promise-based API that detects when specific webfonts have been downloaded and applied to the document. The tool manages the loading process for fonts hosted on external services or self-hosted servers, tracking availability to prevent layout shifts and the flash of unstyled text. This allows for dynamic typography control, enabling specific CSS changes or animations to trigger only after a typeface is ready for use. The project monitors font st

    JavaScript
    Voir sur GitHub↗4,338
  • fontsource/fontsourceAvatar de fontsource

    fontsource/fontsource

    5,778Voir sur GitHub↗
    TypeScriptcssfontfont-family
    Voir sur GitHub↗5,778
  • davidmerfield/typesetAvatar de davidmerfield

    davidmerfield/typeset

    2,682Voir sur GitHub↗

    Typeset is an HTML pre-processor for web typography which provides typographic features used traditionally in fine printing which remain unavailable to browser layout engines. Typeset's processing brings the following to your webpages:

    JavaScript
    Voir sur GitHub↗2,682
  • ecomfe/fontminAvatar de ecomfe

    ecomfe/fontmin

    6,195Voir sur GitHub↗

    Fontmin is a web font asset pipeline and minification tool designed to reduce font file sizes by removing unused glyphs. It functions as a font format converter and an SVG icon font generator, allowing for the creation of optimized font assets for web deployment. The project is distinguished by its ability to synthesize custom icon fonts by converting multiple SVG files into a single font asset. It further differentiates itself through a plugin-based processing pipeline, which enables the integration of custom transformation functions into the font handling stack. The tool covers a broad ran

    JavaScript
    Voir sur GitHub↗6,195
Voir les 30 alternatives à Webfontloader→

Questions fréquentes

Que fait typekit/webfontloader ?

Webfontloader est une bibliothèque JavaScript et une API standardisée pour récupérer et gérer les polices web provenant de multiples fournisseurs externes et feuilles de style personnalisées. Elle fonctionne comme un gestionnaire d'état de chargement de polices qui coordonne la récupération des assets typographiques via une interface unifiée.

Quelles sont les fonctionnalités principales de typekit/webfontloader ?

Les fonctionnalités principales de typekit/webfontloader sont : Font Loading Libraries, Web Font Loaders, Loading Timeouts, FOIT Prevention, Font Loading Transitions, Lifecycle Event Hooks, Loading Timeout Controllers, Cross-Provider Font Loaders.

Quelles sont les alternatives open-source à typekit/webfontloader ?

Les alternatives open-source à typekit/webfontloader incluent : bramstein/fontfaceobserver — Fontfaceobserver is a webfont availability detector and developer tool designed to synchronize typography loading with… fontsource/fontsource. ecomfe/fontmin — Fontmin is a web font asset pipeline and minification tool designed to reduce font file sizes by removing unused… davidmerfield/typeset — Typeset is an HTML pre-processor for web typography which provides typographic features used traditionally in fine… jaicab/localfont — Implement localStorage web font caching in seconds. ladjs/custom-fonts-in-emails — An extremely easy way to use custom fonts in emails without having to use art software.