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 next 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.
Re: Text appearance [message #6560 is a reply to message #6558] Sat, 18 November 2006 09:35 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
1. Frankly, ScreenSans simply was not a good idea, it is a candidate for removal.

2. Accepted.

Mirek
Previous Topic: 609-Dev3 - no layout designer?
Next Topic: LayDes package
Goto Forum:
  


Current Time: Fri Apr 19 01:23:28 CEST 2024

Total time taken to generate the page: 0.03553 seconds