|
|
Re: CSS font [message #531817 is a reply to message #531748] |
Thu, 06 May 2010 08:44 |
|
Hi,
maybe your observation is related to the way the text size determination
works in RAP. Before text sizes are measured on the client, it uses an
estimated value. This only affects the first session that renders the
string.
Ralf
lsq wrote:
> I am implementing a widget whose size depends on the font it is using. I
> use themming from a CSS file where default font are defined. I suppose
> the widget I am working on will inherit the font type from css which is
> decided before widget is rendered. However when debuging the I find
> different values from Graphics.stringExtent(font, string) method, and I
> am sure that the samet font returned from Control.getFont method and
> used as the parameter. So I guess this is the problem of the
> implementation ofGraphics.stringExtent which returns different value
> when I simply refresh the web page.
|
|
|
Powered by
FUDForum. Page generated in 0.06270 seconds