freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] Note the lack of floating-point data ty


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] Note the lack of floating-point data types.
Date: Sat, 15 Oct 2022 02:08:43 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • 3ab1875c
    by Alexei Podtelezhnikov at 2022-10-14T22:06:23-04:00
    Note the lack of floating-point data types.
    

2 changed files:

Changes:

  • include/freetype/freetype.h
    ... ... @@ -4694,7 +4694,8 @@ FT_BEGIN_HEADER
    4694 4694
        *
    
    4695 4695
        * @description:
    
    4696 4696
        *   This section contains various functions used to perform computations
    
    4697
    -   *   on 16.16 fixed-float numbers or 2d vectors.
    
    4697
    +   *   on 16.16 fixed-point numbers or 2D vectors.  FreeType does not use
    
    4698
    +   *   floating-point data types.
    
    4698 4699
        *
    
    4699 4700
        *   **Attention**: Most arithmetic functions take `FT_Long` as arguments.
    
    4700 4701
        *   For historical reasons, FreeType was designed under the assumption
    

  • include/freetype/fttypes.h
    ... ... @@ -45,7 +45,10 @@ FT_BEGIN_HEADER
    45 45
        * @description:
    
    46 46
        *   This section contains the basic data types defined by FreeType~2,
    
    47 47
        *   ranging from simple scalar types to bitmap descriptors.  More
    
    48
    -   *   font-specific structures are defined in a different section.
    
    48
    +   *   font-specific structures are defined in a different section.  Note
    
    49
    +   *   that FreeType does not use floating-point data types.  Fractional
    
    50
    +   *   values are represented by fixed-point integers, with lower bits
    
    51
    +   *   storing the fractional part.
    
    49 52
        *
    
    50 53
        * @order:
    
    51 54
        *   FT_Byte
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]