Skip to content

Commit

Permalink
Update README.md (#754)
Browse files Browse the repository at this point in the history
Call measureText and measureTextHeight from jimp module
  • Loading branch information
robert-moore authored and hipstersmoothie committed Aug 17, 2019
1 parent e0978bb commit 3671567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-print/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async function main() {
const font = await jimp.read(jimp.FONT_SANS_32_BLACK);
const image = await jimp.read(1000, 1000, 0x0000ffff);

image.measureText(font, 'Hello World!');
jimp.measureText(font, 'Hello World!');
}

main();
Expand All @@ -163,7 +163,7 @@ async function main() {
const font = await jimp.read(jimp.FONT_SANS_32_BLACK);
const image = await jimp.read(1000, 1000, 0x0000ffff);

image.measureTextHeight(font, 'Hello World!', 100);
jimp.measureTextHeight(font, 'Hello World!', 100);
}

main();
Expand Down

0 comments on commit 3671567

Please sign in to comment.