freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Needed Size for Text String


From: Brian Stell
Subject: Re: [Freetype] Needed Size for Text String
Date: Mon, 13 Aug 2001 09:21:56 -0700

Matthias Bargmann wrote:
> ...
> Is it possible to find out the needed size for a text String BEFORE 
> rendering it? I found something like this in the faq, but there was 
> no answer!?

Yes and no. To find a glyph's size (or set of glyphs' size) one
will need to open the font, set the size, get the glyph. Actually
rendering (producing the bitmap) is not required.

See the discussion in the tutorial:
 
http://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html

To see the example code search for "DO NOT RENDER IT".

-- 
Brian Stell
mailto:address@hidden



reply via email to

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