sameFont
import { sameFont } from 'pixi-silk/i18n';
function sameFont(shaper: Pick<RuntimeShaper, "fontHash">, face: {
hash: string;
}): boolean;
True when a shaper’s font is the one a bundle face was baked from. When it is not, the brief’s rule applies: warn, and keep the baked data for static text.
Parameters#
| Parameter | Type |
|---|---|
shaper | Pick<RuntimeShaper, "fontHash"> |
face | { hash: string; } |
face.hash | string |
Returns#
boolean