Go to AVS Home Page
 Recent Releases
AVS/Express 7.3 Released
OpenViz 2.9 Released
Toolmaster 7.5.3 Released
AVS 5.7 Released
 Contact Support
 Licensing
Information on licensing AVS 
products
 
Interact with the AVS Developer 
community. Takes you out of 
the support web site

 


Q. When I set a font in a UIshell, is this font 'inherited' by all of the UIshell's child objects?

A. Yes. So, for example, if you set the UIshell's fontAttributes.family subobject to "courier", all of the objects parented to that shell will 'inherit' the courier font as their default font (you can override the value in any child widget by setting its fontAttributes.family subobject to a different value, such as "times".)

However, if you set one fontAttribute in the child widget, it uses all of the fontAttribute values in that object. For example, you set fontAttributes.family to "courier" and fontAttributes.weight to "medium" in a UIshell. All child objects of that UIshell inherit those fonts attributes by default. Now, in a UItext child of the UIshell, you set fontAttributes.family to "times". Since you set a value here, AVS/Express uses all the values from this object and doesn't inherit any from the parent. So, weight will be set to the default "bold" and not to the value it was set to in the UIshell, "medium".