I have problem with text

magistr

27-12-2007 12:29:57

I have problem with text in my labels:



Labels must contains following text:

Contact
Get 50$ on Space
Laboratory research

magistr

27-12-2007 13:06:39

This bug also present with latest SVN

mr.Zog

27-12-2007 15:22:34

My 2 cents:
I have some problems too (see my older post http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5979 )

What noticed: text is being cut off and sometimes chars arent rendered.

For example I got a label named "time-pressure" and it writes out "time-pressur", if I spell "time-pressuree" it writes out "time-pressure" :D

I hadn't yet had time to post this, as Im currently writting my bachelors thesis...but you reminded me again ^^

magistr

27-12-2007 15:27:26

In forum exists topic with same problem. But I am does not found it :-(

kungfoomasta

27-12-2007 17:35:37

Can you add code to the demo to reproduce this, and post it? I'll need to be able to step through the code to see if the characters are being setup to be rendered or not. I don't need the font, I'll try using the same font as in the demo first.

magistr

28-12-2007 12:57:43

O... of cource.
For test this in demo please use following code:

QuickGUI::Label* logoLabel = mSheet->createLabel();
logoLabel->setDimensions(Rect(60,240,320,90));
logoLabel->setPosition(Point(60,240));
logoLabel->setTextColor(ColourValue::White);
logoLabel->setFont("BlueHighwayBig2");
logoLabel->setText("Get 50$ on Space");
logoLabel->show();


My BlueHighwayBig2 afont is:

BlueHighwayBig2
{
type truetype
source bluehigh.ttf
size 75
resolution 55
}


And I am test this code.
This bug appears only if I am set font with size more than 55.

kungfoomasta

28-12-2007 18:28:18

Thanks, I will try this on the weekend. Also, does this occur in all resolutions? What is the resolution of the render window for the screenshot you posted?

kungfoomasta

02-01-2008 00:29:22

I tried out your code, and I'm not able to reproduce any sort of problem...



If you remove your call to setting the label dimensions, the label is auto sized to fit the text:



Without auto sizing the label renders whole words only.

magistr

03-01-2008 18:51:37

I am try code and fix it for demo.
This code I am paste from demo:


logoLabel = mSheet->createLabel();
logoLabel->hide();
logoLabel->setText("Get 50$ on Space 1 Get 50$ on Space 1 Get 50$ on Space 1 Get 50$ on Space 1");
logoLabel->setFont("BlueHighwayBig2");
logoLabel->setDimensions(QuickGUI::Rect(0,0,1000, 80));
logoLabel->show();


This code show only short line: "Get 50$ on Space 1 Get"

For fix this problem I edit this code and exchange line positions
logoLabel->setFont("BlueHighwayBig2");
and
logoLabel->setDimensions(QuickGUI::Rect(0,0,1000, 80));

In result:
logoLabel = mSheet->createLabel();
logoLabel->hide();
logoLabel->setText("Get 50$ on Space 1 Get 50$ on Space 1 Get 50$ on Space 1 Get 50$ on Space 1");
logoLabel->setDimensions(QuickGUI::Rect(0,0,1000, 80));
logoLabel->setFont("BlueHighwayBig2");
logoLabel->show();


this code is correct.
But why I must set dimensions before set font???
In my game I have animation with GUI.

magistr

14-01-2008 21:08:46

You are review this problem?

kungfoomasta

14-01-2008 21:49:11

I'm sorry, but seeing as I am the only person interested in debugging and investigating bugs, I'm losing my tolerance for others who don't put in any effort into debugging. What is preventing you from looking into this yourself?

I am definately an advocate for user feedback and input, but that shouldn't be confused with the idea of me doing all the work, which is what it feels like I've been doing for the majority of my 9 months of work on the library.

nullsquared

14-01-2008 21:54:38

I'm sorry, but seeing as I am the only person interested in debugging and investigating bugs, I'm losing my tolerance for others who don't put in any effort into debugging. What is preventing you from looking into this yourself?

I am definately an advocate for user feedback and input, but that shouldn't be confused with the idea of me doing all the work, which is what it feels like I've been doing for the majority of my 9 months of work on the library.

Man don't feel like that, I think your work is awesome. Very awesome - it works great, feels natural, and is extremely easy to get up and running.

@ the rest: come on, you compiled QuickGUI yourself (or are there pre-built versions of it? I remember I had to build it myself) - surely you can take a nice look at things and try to figure it out for yourselves. I mean, seriously, get tough :twisted: