summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoazin Khatti <moazinkhatri@gmail.com>2019-06-22 16:36:29 +0500
committerMoazin Khatti <moazinkhatri@gmail.com>2019-07-11 14:09:43 +0500
commit1b494f52fbe714d319c7c65b4136450e85490df7 (patch)
tree4a9383ff21369af4b016317d723483e2e0230766
parent204329b18e72b13ddc648d60a410a644cecb9368 (diff)
downloadfreetype2-1b494f52fbe714d319c7c65b4136450e85490df7.tar.gz
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.
-rw-r--r--include/freetype/svgrenderer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/freetype/svgrenderer.h b/include/freetype/svgrenderer.h
index 57ea36507..d7bb6032d 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;
/**************************************************************************