freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] gsoc-anurag-2023-final c33e0b82d 05/11: [dense] Add FT_PreLi


From: Werner Lemberg
Subject: [freetype2] gsoc-anurag-2023-final c33e0b82d 05/11: [dense] Add FT_PreLine struct
Date: Mon, 9 Oct 2023 18:16:49 -0400 (EDT)

branch: gsoc-anurag-2023-final
commit c33e0b82de37344edc2026262c38bbb606601f91
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>

    [dense] Add FT_PreLine struct
    
    * include/freetype/freetype.h: Add FT_PreLineRec struct and its handle 
FT_PreLine
---
 include/freetype/freetype.h | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 6200cc724..a12bd15d5 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -1283,6 +1283,44 @@ FT_BEGIN_HEADER
   } FT_FaceRec;
 
 
+
+  /**************************************************************************
+   *
+   * @type:
+   *   FT_PreLine
+   *
+   * @description:
+   *   A handle to FT_PreLineRec_ containing coordinates of start and end
+   *   points for a line.
+   *
+   */
+  typedef struct FT_PreLineRec_* FT_PreLine;
+
+  /**************************************************************************
+   *
+   * @struct:
+   *   FT_PreLineRec
+   *
+   * @description:
+   *   Linkedlist containing lines to be drawn for a glyph.
+   *
+   * @fields:
+   *   x1, y1 ::
+   *     Coordinates of line start point.
+   *
+   *   y1, y2 ::
+   *     Coordinates of line end point.
+   *
+   *   next ::
+   *     The next PreLine for current glyph
+   *
+   */
+  typedef struct FT_PreLineRec_
+  {
+    int x1, x2, y1, y2;
+    FT_PreLine next;
+  } FT_PreLineRec;
+
   /**************************************************************************
    *
    * @enum:



reply via email to

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