Skip to content

Commit

Permalink
Update image.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdevbtw authored Oct 31, 2023
1 parent c372a2d commit 2567d58
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class Image {
*/
async text(text: string, scale: number, x: number, y: number, font: Font, color: string = "#000000"): Promise<Image> {
if (!this.img) throw new Error("Image is empty");
await font.init();
if (!font.font) throw new Error("Could not load font.");
console.log(this.img);
console.log(font.font);
Expand Down

0 comments on commit 2567d58

Please sign in to comment.