Skip to content

Commit

Permalink
TW: update font manager types
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Nov 3, 2024
1 parent da53338 commit 1f85881
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion types/scratch-vm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,15 @@ declare namespace VM {
fallback: string;
asset?: ScratchStorage.Asset
}>;
restrictedFonts: Set<string>;
restrictFont(font: string): void;
isValidSystemFont(family: string): boolean;
isValidCustomFont(family: string): boolean;
/** @deprecated use isValidSystemFont or isValidCustomFont instead */
isValidFamily(family: string): boolean;
getUnusedSystemFont(family: string): string;
getUnusedCustomFont(family: string): string;
hasFont(family: string): boolean;
getSafeName(family: string): string;
changed(): void;
addSystemFont(family: string, fallback: string): void;
addCustomFont(family: string, fallback: string, asset: ScratchStorage.Asset): void;
Expand Down

0 comments on commit 1f85881

Please sign in to comment.