From 601130e077af810a89c615a988a0116d46aef668 Mon Sep 17 00:00:00 2001 From: Adrian Hill Date: Tue, 7 Dec 2021 01:07:19 +0100 Subject: [PATCH] Update README example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dde7fe8..51371cb 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ using FreeTypeAbstraction face = FTFont("hack_regular.ttf") # render a character -img, metric = renderface(face, 'C') +pixelsize = 10 +img, metric = renderface(face, 'C', pixelsize) # render a string into an existing matrix myarray = zeros(UInt8, 100, 100) -pixelsize = 10 x0, y0 = 90, 10 -renderstring!(myarray, "hello", face, pixelsize, x0, y0, halign=:hright) +renderstring!(myarray, "hello", face, pixelsize, y0, x0, halign=:hright) ``` credits to @aaalexandrov from whom most of the early code comes.