Bug Issue: Text has greater spacing in Web targets at x2 scale


Pages: 1

Luyren

  • Master Stencyler
  • *
September 19, 2017, 02:20:49 pm
b9511, in Flash and HMTL5

Using the image blocks to draw text on an image, the spacing of the text seems to increase based on the scale of the game. At x1 it looks correct, at x2 it looks twice as spaced, x4 the spacing is four times. This doesn't happen in the regular draw text block.

In the attached game, the upper line uses the image blocks, and the bottom line uses the regular draw text block.
« Last Edit: November 05, 2017, 02:34:06 pm by Luyren »


New attachment added by Luyren - September 19, 2017, 02:21:10 pm


Issue updated by Luyren - September 19, 2017, 02:21:35 pm
  • Issue renamed from "Text looks double-spaced in Flash" to "Text has greater spacing in Web targets"


Issue updated by Luyren - November 05, 2017, 02:34:06 pm
  • Issue renamed from "Text has greater spacing in Web targets" to "Text has greater spacing in Web targets at x2 scale"


Issue updated by Justin - February 01, 2018, 10:53:51 am
  • Tags added: 3.5 NP


Luyren

  • Master Stencyler
  • *
April 06, 2018, 01:44:58 pm
Update on b9842.

In Flash, text is now cropped in scales larger than x1. I can't tell if the spacing is correct or not anymore.

Added an updated sample game. The code of the old one had some issues in recent versions.
« Last Edit: April 06, 2018, 01:46:25 pm by Luyren »


New attachment added by Luyren - April 06, 2018, 01:45:30 pm


rob1221

  • Master Stencyler
  • *
April 07, 2018, 08:04:49 am
This is mostly fixed in b9844 with the remaining issue being font quality due to the downscaling when autoscale images is on.  Ideally this should only happen when the scale of the image is lower than that of the font image, but that requires attaching scale data to images.
  • Status changed from New to Confirmed


Luyren

  • Master Stencyler
  • *
April 07, 2018, 09:22:15 am
b9844, confirmed that the text is no longer cropped, nor with the wrong spacing in bigger scales. With Autoscale Images ON, it is just lower quality.

EDIT: I think the low quality  font on larger scales also affect the size of the text somehow. Attached is an image demonstrating.  Left is Autoscale Off, and right is Autoscale On. The red line is drawn using the "drawn line start at" block in a drawing event.
« Last Edit: April 07, 2018, 09:32:39 am by Luyren »


New attachment added by Luyren - April 07, 2018, 09:31:29 am


rob1221

  • Master Stencyler
  • *
April 07, 2018, 10:01:52 am
It looks the same size to me.  The box on the left is smaller because it isn't scaling with the engine scale, while the font is already scaled.
« Last Edit: April 07, 2018, 10:02:02 am by rob1221 »


Luyren

  • Master Stencyler
  • *
April 07, 2018, 10:06:14 am
Should have specified, sorry. On the right side you can see an extra digit from the text string (the 9) in the x2 image compared to the x1 image. Could be just  side-effect of the low quality font, I'm mentioning it just to be on the safe side.


rob1221

  • Master Stencyler
  • *
April 07, 2018, 10:26:18 am
Oh I see what you mean.  I assume it's because the spacing between letters rounds up to the nearest pixel when the font images are generated from the toolset.


Issue updated by Justin - April 09, 2018, 10:40:16 am
  • Tags added: scaling


Pages: 1

Details

  • Reported
    September 19, 2017, 02:20:49 pm
  • Updated
    April 09, 2018, 10:40:16 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Confirmed
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags


Attachments

* Test Text and Image.stencyl (402.02 kB - downloaded 18 times.)
* Test Text and Image.stencyl (881.52 kB - downloaded 4 times.)

* example.png (89.62 kB, 1347x660 - viewed 6 times.)