summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2020-07-14 16:12:29 +0200
committerWerner Lemberg <wl@gnu.org>2020-07-14 16:25:59 +0200
commit5fe7c044c25bba9dfae315ef56bacfc83976ddd0 (patch)
tree27ada0f76898bb3f9f058203c332f609f389b58b
parent95de21ab19cc5409ea09c9347f1d9b5e2cc2d332 (diff)
downloadfreetype2-5fe7c044c25bba9dfae315ef56bacfc83976ddd0.tar.gz
freetype.h (FT_Set_Transform): Minor documentation update.
In order to mention the limited accuracy of `FT_Matrix' coefficients and encourage client code to perform the transform themselves with floating point values instead.
-rw-r--r--include/freetype/freetype.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index ba3950e63..71e22a1d6 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -3175,6 +3175,12 @@ FT_BEGIN_HEADER
* A pointer to the translation vector. Use `NULL` for the null vector.
*
* @note:
+ * This function is provided as a convenience, but keep in mind that
+ * @FT_Matrix coefficients are only 16.16 fixed point values, which can
+ * limit the accuracy of the results. Using floating-point computations
+ * to perform the transform directly in client code instead will always
+ * yield better numbers.
+ *
* The transformation is only applied to scalable image formats after the
* glyph has been loaded. It means that hinting is unaltered by the
* transformation and is performed on the character size given in the