Home » U++ TheIDE » U++ TheIDE: Layout (Forms) Designer » Text appearance
Text appearance [message #6558] |
Sat, 18 November 2006 00:09 |
andrei-catalin
Messages: 62 Registered: May 2006 Location: Romania
|
Member |
|
|
Hi!
1.I've observed that ScreenSans font is dispayed as ScreenSerif font and vice-versa.
2.In order to draw inclined text in Layout Designer I submit next modification in laylib.cpp:
void EscDraw::DrawText(EscEscape& e)
{
if(e.GetCount() < 3 || e.GetCount() > 6)
e.ThrowError("wrong number of arguments in call to 'DrawText'");
int x = e.Int(0);
int y = e.Int(1);
Font font = StdFont();
Color color = SColorText;
if(e[2].IsInt())
{
int z = e.Int(2);
e.CheckArray(3);
WString text = e[3];
if(e.GetCount() > 4)
font = FontEsc(e[4]);
if(e.GetCount() > 5)
color = ColorEsc(e[5]);
w.DrawText(x, y, z, text, Nvl(font, StdFont()), color);
}
else
{
e.CheckArray(2);
WString text = e[2];
if(e.GetCount() > 3)
font = FontEsc(e[3]);
if(e.GetCount() > 4)
color = ColorEsc(e[4]);
w.DrawText(x, y, text, Nvl(font, StdFont()), color);
}
}
I need it to improve Scatter appearance in Layout Designer.
|
|
|
|
Goto Forum:
Current Time: Tue Mar 19 13:35:56 CET 2024
Total time taken to generate the page: 0.01469 seconds
|