Subject Re: height of a text box
From Mervyn Bick <invalid@invalid.invalid>
Date Thu, 2 Jun 2022 16:21:41 +0200
Newsgroups dbase.getting-started

On 2022/06/02 14:43, Mustansir Ghor wrote:
> Dear All
>
> Hope all are good
>
> I am changing font size of text so that it fits in the text box width. But  upper text get cut due to height of text box. Can we calculate height of the text based on font size?
>
> Regards
> Mustansir

The default height of a text control is 1 if the form metric is
characters. The default fontsize is 10.

Irrespective of the metric, if you change the fontsize, change the
height to old_height*new_fontsize/10 i.e for fontsize = 15  height =
old_height * 1.5 and for fontsize = 20 height = old_height * 2

Mervyn.