diff options
author | Moazin Khatti <moazinkhatri@gmail.com> | 2019-08-10 16:20:59 +0500 |
---|---|---|
committer | Moazin Khatti <moazinkhatri@gmail.com> | 2019-08-26 01:17:14 +0500 |
commit | cff4467f25abd4e63e1ed260d40bfea927f6438f (patch) | |
tree | 9233f00305b6ac8931bb63e016c616476dee595a | |
parent | 22d7c8578fd702fcb6208b45bf11ef6355c80841 (diff) | |
download | freetype2-cff4467f25abd4e63e1ed260d40bfea927f6438f.tar.gz |
Minor doc improvement.
-rw-r--r-- | include/freetype/otsvg.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/freetype/otsvg.h b/include/freetype/otsvg.h index 959d56722..62761c432 100644 --- a/include/freetype/otsvg.h +++ b/include/freetype/otsvg.h @@ -149,14 +149,12 @@ FT_BEGIN_HEADER * * @note: * `metrics` and `units_per_EM` might look like repetitions since both - * fields are stored in face objects. However, the Glyph Management API - * requires an `FT_Glyph` to store all the information that completely - * describes a glyph. Outline glyphs are themselves scaled thus they - * don`t need this information. However, SVG documents do. The field - * of `units_per_EM` is needed because the SVG is to be scaled in case - * its viewbox size differs from `units_per_EM`. For more info, refer - * to the section `Coordinate Systems and Glyph Metrics` of the OpenType - * SVG specs. + * fields are stored in face object, but they are not; When the slot is + * passed down to a renderer, the renderer can only access the `metrics` + * and `units_per_EM` by `slot->face`. However, when `FT_Glyph_To_Bitmap` + * sets up a dummy object, it has no way to set a `face` object. Thus, + * metrics information and units_per_EM (which is necessary for OT-SVG) + * has to be stored separately. */ typedef struct FT_SVG_DocumentRec_ |