diff options
Diffstat (limited to 'doc/api.texi')
-rw-r--r-- | doc/api.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/api.texi b/doc/api.texi index ace2e7f..df68889 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -1578,12 +1578,13 @@ Return @code{#t} if @var{font} is a bold font. Return @code{#t} if @var{font} is an italicized font. @end deffn -@deffn {Procedure} draw-text @var{font} @var{text} @var{position} - [#:origin] [#:scale] [#:rotation] [#:blend-mode] +@deffn {Procedure} draw-text @var{text} @var{position} + [#:font] [#:origin] [#:scale] [#:rotation] [#:blend-mode] [#:start 0] [#:end @code{(string-length text)}] Draw the string @var{text} with the first character starting at -@var{position} using @var{font}. +@var{position} using @var{font}. If @var{font} is not specified, a +built-in font is used. @example (draw-text font "Hello, world!" (vec2 128.0 128.0)) |