From 1f946301aba572ece8f9be496edcdd609048ae10 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 12 May 2020 14:43:12 -0400 Subject: doc: Add documentation for font-glyph-metrics. --- doc/api.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/api.texi b/doc/api.texi index 9184ed3..6ee2187 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -1377,6 +1377,12 @@ Delete the memory allocated for @var{font}. Return the maximum height of @var{font}. @end deffn +@deffn {Procedure} font-glyph-metrics font char +Return a 5-element list containing the metrics of @var{char} in +@var{font} in the following format: @code{(minx maxx miny maxy +advance)} +@end deffn + @deffn {Procedure} render-font-solid font text color Render @var{text}, a UTF-8 encoded string, using @var{font} and @var{color}, the foreground color, and return a surface containing the results. -- cgit v1.2.3