Skip to content
pixi-silk
GitHub repository
Function

fontHash

import { fontHash } from 'pixi-silk/i18n';
function fontHash(bytes: Uint8Array): string;

64-bit FNV-1a of font bytes as 16 hex digits: the hash the compiler stores per face. Compare it with SilkBundle.faces.get(id).hash before shaping with a font at runtime.

Parameters#

ParameterType
bytesUint8Array

Returns#

string