From c33e0b82de37344edc2026262c38bbb606601f91 Mon Sep 17 00:00:00 2001 From: Anurag Thakur Date: Tue, 10 Oct 2023 01:30:08 +0530 Subject: [PATCH] [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: