freetype
[Top][All Lists]
Advanced

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

[Freetype] Bounding box


From: Olivier Couet
Subject: [Freetype] Bounding box
Date: Mon, 23 Sep 2002 15:43:32 +0200 (CEST)

 Hi,

 To render text string with FT2 I need to create an XImage which contains
the whole character string. To do that I need to know exactly what will be
the Bounding Box of the whole string at the pixel level. I would like to
know if somebody knows a algorithm with does that at any angle ? For
example:
               +
             T |
           X   |
         E     |  H
       T       |
      +--------+
          W

What is the best way to get W and H for any font ? 

 Olivier

--
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                                    
E-Mail: address@hidden                      Phone: +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/              Fax:   +41 22 7677155




reply via email to

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