freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 144d108 1/2: Add comment that we don't use VORG table


From: Werner LEMBERG
Subject: [freetype2] master 144d108 1/2: Add comment that we don't use VORG table.
Date: Mon, 6 Feb 2017 12:17:04 +0000 (UTC)

branch: master
commit 144d10873d6eebbadde21ebebfa2beb3eb6adfca
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>

    Add comment that we don't use VORG table.
---
 include/freetype/freetype.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 1e623ec..568a588 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -305,6 +305,11 @@ FT_BEGIN_HEADER
   /*    `horiAdvance' or `vertAdvance'; you have to manually adjust these  */
   /*    values to account for the added width and height.                  */
   /*                                                                       */
+  /*    FreeType doesn't use the `VORG' table data for CFF fonts because   */
+  /*    it doesn't have an interface to quickly retrieve the glyph height. */
+  /*    The y~coordinate of the vertical origin can be simply computed as  */
+  /*    `vertBearingY + height' after loading a glyph.                     */
+  /*                                                                       */
   typedef struct  FT_Glyph_Metrics_
   {
     FT_Pos  width;



reply via email to

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