Jump to content

Text not showing correctly on Windows


Aaron Wang
 Share

Recommended Posts

The code is written like this:

this.tableNameText = new PIXI.Text(
	'BR 001',
	{ font: '100 6px Arial', fill: '#666666' }
);

This one is on OS X, it's showing perfectly.

569ccfc48f084_ScreenShot2016-01-18at7.36

This one is on Windows, it doesn't show correctly. The text is too big, any idea what could cause this? thanks.

569ccfc5d03e1_ScreenShot2016-01-18at7.36

I tried to use very small value for font size, like 1px, it changes nothing, is there a minimal limitation for font size?

Link to comment
Share on other sites

You didn't say what browser/s you had tested, but have you tried using quotes rather than backticks for the style string, it would seem a bit silly to require ES6 template strings for the supplied example (also, why is the fill not a string, I though numeric colour values weren't accepted for fill)

EDIT: Sorry Ivan, I didn't see your post when I posted mine (I think you must have posted while I was typing)

Link to comment
Share on other sites

1 minute ago, chg said:

You didn't say what browser/s you had tested, but have you tried using quotes rather than backticks for the style string, it would seem a bit silly to require ES6 template strings for the supplied example (also, why is the fill not a string, I though numeric colour values weren't accepted for fill) 

Chrome/Safari/Firefox on OS X are all fine, on Windows I only tested Chrome for now.

Yes, sorry for the trouble, have updated the code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...