x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Textbox selection highlight doesn't respect margins/line height

I have an 'Editable Text (Multi-line)' box in a UMB widget for the player to enter notes.

When the margins are set to 0,0,0,0 with a line height percentage of 1, the text selection highlight appears correctly (see first image below).

alt text

However, if I change these values, the selection highlight doesn't adjust to accommodate the new values. The next image shows the situation with margins at 0,-20,0,18 with a line height percentage of 0.7.

alt text

The font size is 18 in both cases.

I have to use these strange values (and I'm glad these settings are here in the first place) as I'm using a font that behaves a little oddly - note how in the first picture (with default line values), the 'y' is cut off at the bottom. The choice of font is an artistic one that I don't really want to change just because of this bug, although it's not a huge deal. The font is 'Kozuka Gothic Pro' (which downloadable anywhere on an open license if you need to test it).

Thanks!

Product Version: UE 4.14
Tags:
more ▼

asked Jan 16 '17 at 10:36 AM in Bug Reports

avatar image

Bob3DGames
114 4 10 16

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

1 answer: sort voted first

Hello Bob3DGames,

I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have provided a link to the public tracker. Please feel free to use the link provided for future updates.

Link: https://issues.unrealengine.com/issue/UE-40673

Make it a great day

more ▼

answered Jan 16 '17 at 04:18 PM

avatar image

Rudy Q ♦♦ STAFF
47.4k 545 132 523

avatar image Bob3DGames Jan 16 '17 at 06:49 PM

Great, thanks!

avatar image CleanCut Jan 16 '17 at 07:11 PM

I betcha the code assumes positive margins! :-P

avatar image Jamie Dale STAFF Mar 07 '17 at 09:50 PM

Just to let you know that this highlight issue has been fixed for 4.16, and I've also added an option that lets you control whether the font layout uses the metrics or the bounding box to calculate the height, ascender, and descender.

In the case of the font you're using here, the "bounding box" mode produces a more accurate line height, so you won't need to work around it with margins.

avatar image Bob3DGames Mar 08 '17 at 09:46 AM

Excellent, thanks!

(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