summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 468c5a3..50ce301 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -2089,13 +2089,17 @@ the above example.
The following procedures can be found in the @code{(chickadee graphics
text)} module:
-@deffn {Procedure} load-font file-name point-size [#:char-set]
+@deffn {Procedure} load-font file-name point-size [#:char-set] [#:smooth? #t]
Load the scalable (OpenType, TrueType, etc.) font in the file
@var{file-name} and display it at the given @var{point-size}. By
default, all the characters in the ASCII character set are loaded.
This can be changed by passing a different character set
(@pxref{Character Sets,,, guile, GNU Guile Reference Manual}) using
the @var{char-set} keyword argument.
+
+If @var{smooth?} is @code{#t} (the default), text rendered with this
+font will have a smoother appearance when text is rotated or scaled,
+otherwise non-smooth scaling will be used.
@end deffn
@deffn {Procedure} load-bitmap-font file