Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Scaling issue with slate text

I'm not certain if this is a bug or an expected side effect of DPI scaling. I'm using the Font Measure Service to right align my text in the images below, with the width of the space available to draw the text in determined by the largest X extent among the labels.

alt text alt text

The first image is at 1:1 scale and is flush. If I zoom in on the canvas to +1 scale, some of the labels remain flush whilst others are not. It seems that the size the text is actually drawn at does not match up precisely with the size returned by the font measuring. This effect does not get more pronounced as I zoom further in or out - it just fluctuates slightly between each zoom level.

Product Version: UE 4.8
textscale1.png (30.2 kB)
textscale2.png (34.9 kB)
more ▼

asked Jul 23 '15 at 09:04 PM in Bug Reports

avatar image

2.1k 83 37 121

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello kamrann,

This is working as intended text does not zoom linearly, it can't because of kerning and pixel snapping. You could try adjusting your anchors and or changing the aliment of your text. I hope that this information helps.

Make it a great day

more ▼

answered Jul 24 '15 at 02:33 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image kamrann Jul 24 '15 at 03:11 PM

Hi Rudy. Right the non-linear zooming makes a lot of sense. To clarify though, I'm drawing this text at a fairly low level in Slate code (they are not STextBlock widgets) so I can't fix this with anchors or alignment.

I've just done a test though with right-aligned text blocks in a vertical box, and it remains flush regardless of zoom. So clearly it is possible. I'll look into how STextBlock alignment is implemented, perhaps I was misusing the text measure service.


(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question