Text size and formating in 1.4 not working?

Asked by Tiedo Boerema

Xibo client is running on an XP Prof machine ; Xibo server on a Server 2008, both latest version (1.4.0).

When adding text boxes or a ticker, you have the possibility to adjust the way the text is displayed in the editor. In version 1.2.2 these changes were also visible on the client and works as expected. Since the upgrade to (which was basically for us a new install) 1.4.0 I see that whatever I do change regarding formating, this is not reflected on the client, even worse... I just cannot predict what the size of the characters will be... Selecting size 12 results in size (approximately) 48 on screen, but can also result in size 72 on screen... And selecting size 10 could result in just a few characters on the screen, but selecting 20 could result in smaller characters again. I'm not aware what I'm doing wrong, since I'm doing basically the same as on version 1.2.2 (which I still have running in the productive environment).

Apart from this I also have seen that the seperator in the ticker for RSS feeds, when running horizontally, is gone in 1.4.0 eventhough it was there in 1.2.2. Maybe an idea for the future to have an additional field available in the ticker element in which the user can select a separator for feeds?

Thanx in advance for your reply!

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Tiedo Boerema
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

The text scaling in 1.4.0 is greatly improved.

You need to make sure you're using absolute text sizes NOT using em sizes (which you will be in most of your old layouts).

Start by selecting all your text and using the eraser icon from the toolbar to remove all the formatting from it. Then size it using the font size tools so that it appears as you want in the layout designer window. The client will then match the text size so it renders the same as in the preview.

Make sure you don't have the "scale text to fit" box ticked otherwise the client will make the text fill the region completely.

Alex

Revision history for this message
Tiedo Boerema (tiedo-boerema) said :
#2

Well... I have tried it in as well Internet Explorer as in Chrome, both times first removing all formatting then setting Bold and Underline on the Title and leave the Description as it is, then selecting everything, selecting the font Verdana, selecting the size 16 points (all within the CKEditor) and selecting the color #0066cc. Finally clicking the Save button. In both cases the 'scale text to fit' is not ticked.

What I do see, is that in Chrome the preview shows the correct fontsize and looks ok, in IE this is not the case.

The final result on the client is still horrible. A text size of about 48 points...

Any other options / proposals?

By the way, also the default Xibo page is showing horrible with huge text sizes...

Revision history for this message
Dan Garner (dangarner) said :
#3

You can manually put the separator in by putting it into your template.

What resolution are your screens? We have spent hours trying to get text sizing working correctly - and in all the cases we have tested, it looked pretty good.

If fit text is not ticked the client will work out the difference between your resolution and the resolution of the layout you designed with - it will then use this scale factor to increase / decrease the pixel text sizes of all text on screen.

If you are designing with the standard 16:9 then I think its 800 wide. To get a scale of 12 to 48, your resolution must be huge?

Revision history for this message
Tiedo Boerema (tiedo-boerema) said :
#4

Resolution of our screens: 1920*1080
And that's also the reason why I don't understand it... Compared to version 1.2.2 the same textsize shows as expected (about 2.5 times the defined size), but not in 1.4.0... I'm not sure if it's really 48 pixels, but it looks the same size as when defining a text size of 48 pixels in the 1.2.2 version.
By the way, just as additional info, this is the HTML code as provided by CKEditor in as well 1.4.0 as 1.2.2:

<p><span style="font-size: 12px"><strong><span style="color: rgb(0,102,204)"><span style="font-family: verdana, geneva, sans-serif">[Title] -&nbsp;</span></span></strong></span></p>

Most stupid thing, I just tested it, is: When using font-size of 16 pixels, the text-size shown on the player is smaller than when using font-size 12 pixels... I'm getting more and more confused.

Revision history for this message
Roel Vliegen (r-vliegen) said :
#5

I would like to report the same issue as mentioned above when updating to 1.4.
My HTML code of the CKEditor also corresponds somewhat.

I had a back-up of the client and the server so I reverted back, but I will test some more at the end of the month on the 'broken' server and client.

Specs editing computer:
Windows XP SP3
.Net 3.5
IE8
FireFox 16.0.2
Screenresolution: 1280 x 1024

Specs client:
Windows XP SP3
.Net 3.5
IE8
Screenresolution: 1680 x 1050

Xibo details:
Layout resolution: 800 x 500

Some other thing I experienced: FireFox 16.0.2 isn't compatible with the webinterface.

Revision history for this message
Dan Garner (dangarner) said :
#6

I will look at this as soon as I can.

What it does at the moment is work out a scale factor:
_scaleFactor = Math.Min(_clientSize.Width / _layoutWidth, _clientSize.Height / _layoutHeight);

Reduce it slightly

scaleFactor * 0.85

And run this javascript:

$("span, p", this).each(function(){

  var fontSize = $(this).css("font-size");

  $(this).css("font-size", Math.round(fontSize.replace("px", "") * scaleFactor));
});

So in Roel's case a font size of 12px would translate to: 21.42px;

Revision history for this message
Dan Garner (dangarner) said :
#7

We think we have found a more reliable way of doing it - we will run some tests and put an exe here to try asap.

Revision history for this message
Dan Garner (dangarner) said :
#8

Can someone please try the patch in the attached bug report - I think it should correctly scale text (better than 1.2 as well).

Revision history for this message
Tiedo Boerema (tiedo-boerema) said :
#9

I have tried to use the client and the results are:
1. Text sizing goes really well, even beter than in 1.2.2
2. At once embedded HTML is not going well anymore... In 1.2.2 this goes ok and also in the released 1.4.0 client this goes ok, but now it's not resized anymore to the size of the region.
3. Pictures are resized to the same size as before, but the result is in 1.2.2 much better then it is in this client... To be honoust (did not have the time for it yet) I'm not sure what the result was in 1.4.0 client.
4. The ticker text is scrolling much faster then before and for me only setting the speed value to 1 is still good readable, any other value (higher) leads to very fast scrolling.

Sorry for the late response, but could not test earlier thanks to other business priorities...

By accident I also added this text as a comment to the bug report... Sorry!

Revision history for this message
Tiedo Boerema (tiedo-boerema) said :
#10

The result 3 regarding picture sharpness was à wrong conclusion... It appeared that the result on the same screen but with different computers also can lead to different results. Same computer with same screen running the three different versions of the player shows that point 3 was not true. My appologies!

Revision history for this message
James Doring (doringj) said :
#11

I would like to echo the concern over the scrolling speed. The lowest speed (1) is too fast to read my feed.

Revision history for this message
Tiedo Boerema (tiedo-boerema) said :
#12

@Dan Garner:

You asked me (in the linked bug) to create new questions for the other points I have mentioned.
But I am not sure to create new questions for these points because all these points (except point 3) are just occuring in the fix and not in the released 1.4.0 version... An overview:

                                         1.2.2 1.4.0 1.4.0-fix
Text sizing OK Wrong OK (even better)
Ticker speed OK OK Too fast
Picture sizing OK OK OK
Embedded HTML sizing OK OK No resizing at all to size of region

As you see, the other two open points are only related to the fix, not to the 1.4.0 version. But if you think there should be new questions created for it, I'll do :)

Revision history for this message
Tiedo Boerema (tiedo-boerema) said :
#13

Chips... It's removing all spaces and bring it back to one.... Now my table is gone...

Revision history for this message
Dan Garner (dangarner) said :
#14

I get what you were trying to do :-)

For embedded HTML can you get me a sample from the client? Enable the mouse pointer from client options and then wait for your embedded media to show. Then right click, view source, save as test.html and then post it on-line somewhere I can get to?

The same would also be really good for scrolling text - I can get my text to scroll pretty slowly (when set to 1)

Revision history for this message
Tiedo Boerema (tiedo-boerema) said :
#15

I have added a ZIP file to the linked bug which contains four html files containing the source html code for as well 1.4.0 as the fix version. I hope this will help you in looking into these issues!

Revision history for this message
Tiedo Boerema (tiedo-boerema) said :
#16

The final bug fix solved the initial and all arising issues!

Thanks for the great support!