determining character width (fitting text)
- From: Vadim Berezniker <vadim berezniker com>
- To: gtk-app-devel-list gnome org
- Subject: determining character width (fitting text)
- Date: Tue, 25 Mar 2003 11:45:27 -0500
I'm trying to fit text inside a label so that it's at its maximum size.
I wrote some very very very disturbing, perverted, bad code to determine
the font size that's needed for the text to fit, but there has got to be
a better way. (Plus the docs for one of the functions that I'm using
says that the return is only approximate ... )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]