Skip to content

Function: subscribeFontChanges() ​

ts
function subscribeFontChanges(listener): () => void;

Experimental

Subscribe to font changes (registrations, CSS font faces finishing loading). Used by the default font metrics oracle to drop measurements taken with a fallback font. Returns an unsubscribe.

Parameters ​

ParameterType
listener() => void

Returns ​

() => void

Released under the MIT License.