summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2022-10-14 22:06:23 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2022-10-14 22:06:23 -0400
commit3ab1875cd22536b3d715b3b104b7fb744b9c25c5 (patch)
treef864a3dd4a826349e8053c7bcc419e0e1bd57904 /include
parent5182264a40e70ff31be0a0ec8a0d5ffb5f65582e (diff)
downloadfreetype2-3ab1875cd22536b3d715b3b104b7fb744b9c25c5.tar.gz
Note the lack of floating-point data types.
Diffstat (limited to 'include')
-rw-r--r--include/freetype/freetype.h3
-rw-r--r--include/freetype/fttypes.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 81ca12ad7..57b250fdb 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -4694,7 +4694,8 @@ FT_BEGIN_HEADER
*
* @description:
* This section contains various functions used to perform computations
- * on 16.16 fixed-float numbers or 2d vectors.
+ * on 16.16 fixed-point numbers or 2D vectors. FreeType does not use
+ * floating-point data types.
*
* **Attention**: Most arithmetic functions take `FT_Long` as arguments.
* For historical reasons, FreeType was designed under the assumption
diff --git a/include/freetype/fttypes.h b/include/freetype/fttypes.h
index 29f32fbb2..8a1b6efea 100644
--- a/include/freetype/fttypes.h
+++ b/include/freetype/fttypes.h
@@ -45,7 +45,10 @@ FT_BEGIN_HEADER
* @description:
* This section contains the basic data types defined by FreeType~2,
* ranging from simple scalar types to bitmap descriptors. More
- * font-specific structures are defined in a different section.
+ * font-specific structures are defined in a different section. Note
+ * that FreeType does not use floating-point data types. Fractional
+ * values are represented by fixed-point integers, with lower bits
+ * storing the fractional part.
*
* @order:
* FT_Byte