freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master b66d6a9: CHANGES: Document recent metrics change from


From: Werner LEMBERG
Subject: [freetype2] master b66d6a9: CHANGES: Document recent metrics change from Nikolaus.
Date: Wed, 6 Feb 2019 01:38:48 -0500 (EST)

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

    CHANGES: Document recent metrics change from Nikolaus.
---
 docs/CHANGES           | 16 ++++++++++++++++
 src/truetype/ttgxvar.c |  2 ++
 2 files changed, 18 insertions(+)

diff --git a/docs/CHANGES b/docs/CHANGES
index 121f13f..0938a67 100644
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -18,6 +18,22 @@ CHANGES BETWEEN 2.9.1 and 2.10
 
   III. MISCELLANEOUS
 
+    - The  logic for  computing  the global  ascender, descender,  and
+      height  of  OpenType  fonts   has  been  slightly  adjusted  for
+      consistency.
+
+      . If the `useTypoMetrics' flag (i.e., bit 7 in the `fsSelection'
+        field) in the  `OS/2' table is set, use the  `sTypo' fields in
+        `OS/2' unconditionally.
+      . Otherwise use  the metrics data from the `hhea'  table (if not
+        zero).
+      . Otherwise use the `sTypo' fields (if not zero).
+      . Otherwise use the `usWin' data from the `OS/2' table as a last
+        resort.
+
+      Variable fonts will apply the `MVAR' deltas to whichever metrics
+      were picked.
+
     - `TT_Set_MM_Blend' could  fail if  call repeatedly with  the same
       arguments.
 
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index 787d686..8323484 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -1405,6 +1405,8 @@
        */
       FT_Short  current_line_gap = root->height - root->ascender +
                                    root->descender;
+
+
       root->ascender  = root->ascender + mvar_hasc_delta;
       root->descender = root->descender + mvar_hdsc_delta;
       root->height    = root->ascender - root->descender +



reply via email to

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