[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] bounding box
From: |
David Turner |
Subject: |
Re: [Devel] bounding box |
Date: |
Wed, 27 Nov 2002 15:53:23 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910 |
Steve Dekorte wrote:
Is there a way to find the length(in pixels) of what a given string will
render to without actually rendering?
it's possible to do that before rendering the outlines to bitmaps. However,
it's not possible to do it without hinting the glyphs to device-specific
character sizes, which itself is a rather slow operation.
If you're performing rendering after text layout, you might then have to
perform hinting twice. Which isn't a good idea with regards to performance.
In other words, use a bitmap or even outline cache. Life will be easier :-)
Regards,
- David Turner
- The FreeType Project (www.freetype.org)