Skip to content

Commit

Permalink
fix compiler error in scaler-context.ts (#2422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hparty authored Aug 14, 2024
1 parent 7429949 commit 52a2cdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export interface FontMetrics {
}

export interface ScalerContext {
fontString: () => string;
getTextAdvance: (text: string) => number;
getTextBounds: (text: string) => Rect;
generateFontMetrics: () => FontMetrics;
fontString: (fauxBold: boolean, fauxItalic: boolean) => string;
getAdvance: (text: string) => number;
getBounds: (text: string, fauxBold: boolean, fauxItalic: boolean) => Rect;
getFontMetrics: () => FontMetrics;
generateImage: (text: string, bounds: Rect) => TexImageSource | OffscreenCanvas;
}

Expand Down

0 comments on commit 52a2cdf

Please sign in to comment.