Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » GetFontInfo without a Draw object?
GetFontInfo without a Draw object? [message #4932] |
Sat, 26 August 2006 13:14 |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
I would like to extend the "reference/Display" example so that only these files are added to the DropList which are scalable (scaleable).
I should be able to write as follows:
...
Font fnt;
FontInfo fi;
for(int i = 0; i < Font::GetFaceCount(); i++)
{
fnt = Font(i, 20);
fi = Draw::GetFontInfo(fnt)
if (fi.IsScaleable)
dl.Add(i);
}
...
But that doesn't work. The compiler tells me that "GetFontInfo" is a non-static private member function of the Draw class. And "Draw.h" tells me even more that "GetFontInfo" or "private: GetFontInfo" respectively is deprecated.
What now?
Werner
|
|
|
Goto Forum:
Current Time: Fri Mar 29 07:35:40 CET 2024
Total time taken to generate the page: 0.02280 seconds
|