freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] bounding box


From: Vincent Caron
Subject: Re: [Devel] bounding box
Date: Tue, 26 Nov 2002 17:11:06 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1

Steve Dekorte wrote:

Is there a way to find the length(in pixels) of what a given string will render to without actually rendering?

If you considered the 'compute_string_bbox()' from http://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html , you'll notice that you don't need to do rendering do compute string metrics. Read the FT_Outline_Get_BBox and Ft_Outline_Get_CBox documentation carefully to choose one or another.




reply via email to

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