freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Improving documentation re vertical metrics


From: Behdad Esfahbod
Subject: Re: [ft-devel] Improving documentation re vertical metrics
Date: Mon, 23 May 2011 17:57:57 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10

On 05/18/11 12:21, Werner LEMBERG wrote:
> 
>> I'm adding vertical text support to HarfBuzz and it occurred to me
>> that FreeType's vertBearingY and vertAdvance metrics have a Y
>> coordinate growing downwards, while all other Y coordinates in
>> FreeType grow upwards.  Thought that may be worth documenting.
> 
> Could you provide a patch, please?

How about this:

diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 3956676..602e475 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -226,10 +226,12 @@ FT_BEGIN_HEADER
   /*      Left side bearing for vertical layout.                           */
   /*                                                                       */
   /*    vertBearingY ::                                                    */
-  /*      Top side bearing for vertical layout.                            */
+  /*      Top side bearing for vertical layout.  Larger positive values    */
+  /*      mean further below the vertical glyph origin.                    */
   /*                                                                       */
   /*    vertAdvance ::                                                     */
-  /*      Advance height for vertical layout.                              */
+  /*      Advance height for vertical layout.  Positive values mean the    */
+  /*      glyph has a positive advance downward.                           */
   /*                                                                       */
   /* <Note>                                                                */
   /*    If not disabled with @FT_LOAD_NO_HINTING, the values represent     */



reply via email to

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