[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] String bounding box -- HELP!
From: |
Graham . Asher |
Subject: |
Re: [Freetype] String bounding box -- HELP! |
Date: |
Tue, 23 Jan 2001 11:32:05 +0000 |
The bounding box of some text is determined by the outline, scaling,
rasterization and hinting. In other words, no, you can't get the bounding
box without rendering the text. Actually, that's not such a bad thing. If
you have a glyph caching system rendering will happen only the *first* time
you measure or draw a glyph, so the only overhead for subsequent times is
the cache latency.
In the EPOC OS, to which I ported FreeType, the bounding box of text is
measured before it is drawn *every* time the graphics system draws text.
The bounds are needed to optimise clipping. This causes no problem or
appreciable efficiency loss at all, for reasons I have just given.
Graham Asher
Symbian Ltd.
*******************************************************************************************************************
Symbian Limited (Co.No.3173352) Registered Office: Sentinel House, 16 Harcourt
Street, London, W1H 4AD, UK.
This message is intended only for use by the named addressee and may contain
privileged and/or confidential information. If you are not the named addressee
you should not disseminate, copy or take any action in reliance on it. If you
have received this message in error please notify address@hidden and delete the
message and any attachments accompanying it immediately. Symbian does not
accept liability for any corruption, interception, amendment, tampering or
viruses occuring to this message in transit or for any message sent by its
employees which is not in compliance with Symbian corporate policy.
*******************************************************************************************************************