Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Layout (Forms) Designer » Text appearance
Text appearance [message #6558] Sat, 18 November 2006 00:09 Go to previous message
andrei-catalin is currently offline  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.
 
Read Message
Read Message
Previous Topic: 609-Dev3 - no layout designer?
Next Topic: LayDes package
Goto Forum:
  


Current Time: Fri Apr 19 19:19:59 CEST 2024

Total time taken to generate the page: 0.05356 seconds