Reference for the Mosaic class Resources::FontSet
The class Resources::FontSet provides a container in which up to four fonts of different sizes can be combined. When assigned to a Views::Text view, the view in question selects from the available fonts the one which is best suited to display its text, filling the view's border area as much as possible and preventing text from being cut off.
property Resources::Font Font0 = null;
The property 'Font0' stores the first font object belonging to the set. A modification of this property can cause all associated Views::Text and Views::AttrText views to update themselves.
property Resources::Font Font1 = null;
The property 'Font1' stores the second font object belonging to the set. A modification of this property can cause all associated Views::Text and Views::AttrText views to update themselves.
property Resources::Font Font2 = null;
The property 'Font2' stores the third font object belonging to the set. A modification of this property can cause all associated Views::Text and Views::AttrText views to update themselves.
property Resources::Font Font3 = null;
The property 'Font3' stores the fourth font object belonging to the set. A modification of this property can cause all associated Views::Text and Views::AttrText views to update themselves.
method Resources::Font GetAnyFont();
The method GetAnyFont() returns the first available font fond in the FontSet.
method Resources::Font GetLargerFont
(
arg Resources::Font
aFont
);
The method GetLargerFont() searches the FontSet for a font with height larger than the of the font provided in the parameter aFont. If such font is not found, returns the largest font existing in this FontSet.
method Resources::Font GetSmallerFont
(
arg Resources::Font
aFont
);
The method GetSmallerFont() searches the FontSet for a font with height smaller than the of the font provided in the parameter aFont. If such font is not found, returns the smallest font existing in this FontSet.