diff options
author | David Thompson <dthompson2@worcester.edu> | 2020-05-12 14:43:12 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2020-05-12 14:43:12 -0400 |
commit | 1f946301aba572ece8f9be496edcdd609048ae10 (patch) | |
tree | e6f97cb49765a9f940e3c9bce1bace9845db87fa | |
parent | 0cf4e680bb5d72a58df86b989a3b10c1c0ec4d23 (diff) |
doc: Add documentation for font-glyph-metrics.
-rw-r--r-- | doc/api.texi | 6 |
1 files changed, 6 insertions, 0 deletions
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. |