summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoazin Khatti <moazinkhatri@gmail.com>2019-07-23 19:47:12 +0500
committerMoazin Khatti <moazinkhatri@gmail.com>2019-08-26 01:17:14 +0500
commit2d13c5127c296c780a5875abcebaecff2d842602 (patch)
treeb51dffa7858bc60bee970e7fa77a9467686eaf15
parentbb1b25e5607c65056bdfce550ba6610bde3de464 (diff)
downloadfreetype2-2d13c5127c296c780a5875abcebaecff2d842602.tar.gz
Add a comment there. That part can be confusing.
-rw-r--r--src/base/ftobjs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index dc71a9823..626c93da0 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -884,6 +884,11 @@
if ( ( load_flags & FT_LOAD_COLOR ) &&
( ttface->svg ) )
{
+ /* load the TTF/CFF glyph without any scaling,
+ * this is so that ultimately, these outlines
+ * can be used to calculate the bounding box and
+ * the advance metrics
+ */
FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_SCALE);
}
#endif