From 3ab1875cd22536b3d715b3b104b7fb744b9c25c5 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Fri, 14 Oct 2022 22:06:23 -0400 Subject: [PATCH] Note the lack of floating-point data types. --- include/freetype/freetype.h | 3 ++- include/freetype/fttypes.h | 5 ++++- 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