freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] GSoC-2019-moazin 11dfaf2 10/11: Minor doc improvement.


From: Moazin Khatti
Subject: [freetype2] GSoC-2019-moazin 11dfaf2 10/11: Minor doc improvement.
Date: Fri, 16 Aug 2019 04:30:04 -0400 (EDT)

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

    Minor doc improvement.
---
 include/freetype/otsvg.h | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/include/freetype/otsvg.h b/include/freetype/otsvg.h
index 959d567..62761c4 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_



reply via email to

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