Hi Mark,
You're right, my suggestion is to use a font object.
I do not know how to use a virtual string to define a font.
I only found the object-based font definition in the documentation:
http://www.mozart-oz.org/documentation/mozart-stdlib/wp/qtk/html/node42.html#misc.font
Cheers,
Yannick
Quoting mark richardson <[email protected]>:
Thank you Parmentier, that solved the problem.
What I still don't understand is the error message I was receiving.
It said that either a virtual string representing a font or a font
object was required. Now the way you suggested is the font object
method but how exactly do you represent a font with a virtual string??
Regards
Mark
Parmentier wrote:
Hi,
In case it may help, here is an example of font definition :
BigFont = {QTk.newFont font(size:14 weight:bold family:'Helvetica')}
Cheers,
Yannick
Quoting mark richardson <[email protected]>:
Hi,
Can anyone just help me with a small problem?
I'm trying to set a slightly larger than standard font in a QTk
text widget but I think I'm getting the syntax wrong somewhere.
Within my widget definition I've got the line
font:font(family:"Times" size:12)
the documentation is a little confusing !
Regards
Mark
--
Mark Richardson
Research Assistant
University of Teesside, UK
[email protected] [email protected]
_________________________________________________________________________________ mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________ mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
--
Mark Richardson
Research Assistant
University of Teesside, UK
[email protected] [email protected]
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
Yannick
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users