Invalid fontSize(0) supplied. Using system standard size(13).

Build 773 displaying:

WARNING: Invalid fontSize(0) supplied. Using system standard size(13).

I have not used fontSize 0 anywhere. How do I find out what is causing this?

A lot of texts are coming distorted and in weird sizes. [import]uid: 19297 topic_id: 23735 reply_id: 323735[/import]

Maybe you’ve just not specified a fontsize somewhere? Or gave a wrong one by accident - maybe some bizarre typo like QW instead of 12?

Strongly suggest doing a find within your code files and see what your display.x() commands are using for font size declarations - more likely to be a problem there than anything else.

Or it could just be 773 bugged and you’re living too close to the bleeding edge. :wink: [import]uid: 41884 topic_id: 23735 reply_id: 95444[/import]

I’m having the same problem with build 773, text is displayed huge.
A bug of 773? [import]uid: 3778 topic_id: 23735 reply_id: 95458[/import]

In my case it happens if I provide the width and height parameters to the newRetinaText method, then the the text is always stretched (and deformed) to fit the provided width.
[import]uid: 3778 topic_id: 23735 reply_id: 95460[/import]

“In my case it happens if I provide the width and height parameters to the newRetinaText method”

That’s what is happening to me as well. These texts are in a paragraph, so I have to specify width and height of the paragraph. [import]uid: 19297 topic_id: 23735 reply_id: 95461[/import]

If your using build 773 use display.newText instead of newRetinaText.

New retina text is now depreciated, display.newText now handles retina automatically [import]uid: 84637 topic_id: 23735 reply_id: 95471[/import]

Thanks [import]uid: 3778 topic_id: 23735 reply_id: 95535[/import]

@Danny: replaced all newRetinaText calls with newText. Texts are still showing up stretched. I double checked all text size, none of them is being set to 0.

Also noticed text is not as sharp as it used to be in iPhone4 simulator. [import]uid: 19297 topic_id: 23735 reply_id: 95560[/import]

@ckausik

Might be worth filing a bug report (with a simple example case that clearly shows the issue at hand) : http://bugs.anscamobile.com [import]uid: 84637 topic_id: 23735 reply_id: 95568[/import]

newText isn’t solving the problem for me too :frowning: [import]uid: 3778 topic_id: 23735 reply_id: 95569[/import]

@Danny: I’ll file a bug report.

Here is what I have found so far:

local textObj1 = display.newText( "sample text 1", 10, 240, 300, 0, "Arial", 12 )  
  
local textObj2 = display.newText( "sample text 2", 10, 440, 300, 20, "Arial", 12 )  
textObj2:setReferencePoint(display.CenterReferencePoint)  

Stretches the textObj1 to make it 300 in width. This happens when I specify paragraph height as 0.

When I specify paragraph height as 20 in textObj2, it is not stretched. But setReferencePoint does not work. The text is always left aligned.
[import]uid: 19297 topic_id: 23735 reply_id: 95573[/import]