freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] GSoC-2019-moazin 64db931 4/8: Adds size information to `FT_S


From: Moazin Khatti
Subject: [freetype2] GSoC-2019-moazin 64db931 4/8: Adds size information to `FT_SVG_DocumentRec'.
Date: Sat, 22 Jun 2019 14:05:17 -0400 (EDT)

branch: GSoC-2019-moazin
commit 64db931f7b25288efc25e23bbd7a20e4632195f8
Author: Moazin Khatti <address@hidden>
Commit: Moazin Khatti <address@hidden>

    Adds size information to `FT_SVG_DocumentRec'.
    
    This is necessary because the document itself contains no
    sizing information. Outline glyphs encapsulate the sizing
    information in the outlines by scaling them. That is not
    possible here. One could access them from the face object
    reference inside a glyph slot, but when the function
    `FT_Glyph_To_Bitmap' creates a dummy slot it can not put
    a face object reference in it. Thus, it's better to store
    the size information here.
---
 include/freetype/svgrenderer.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/freetype/svgrenderer.h b/include/freetype/svgrenderer.h
index 57ea365..d7bb603 100644
--- a/include/freetype/svgrenderer.h
+++ b/include/freetype/svgrenderer.h
@@ -166,8 +166,9 @@ FT_BEGIN_HEADER
 
   typedef struct FT_SVG_DocumentRec_
   {
-    FT_Byte*  svg_document;
-    FT_ULong  svg_document_length;
+    FT_Byte*         svg_document;
+    FT_ULong         svg_document_length;
+    FT_Size_Metrics  metrics;
   } FT_SVG_DocumentRec;
 
   /**************************************************************************



reply via email to

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