| Subject |
Re: height of a text box |
| From |
Mustansir Ghor <mustan31@hotmail.com> |
| Date |
Thu, 02 Jun 2022 12:35:18 -0400 |
| Newsgroups |
dbase.getting-started |
Dear Mervyn Sir
Thank you.
1 pt is 1/72". The pt is font size indicates height of the text. Is there a formula related between the height and width of text.
Regards
Mustansir
Mervyn Bick Wrote:
> 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.
|
|