Advertisement

Why setting stroke-linecap:butt cannot take effect in Coherent UI for UE4

Started by January 02, 2018 10:51 AM
0 comments, last by Royma 6 years, 11 months ago

I'm using a plugin called Coherent UI for UE4 1.11.2.1 to present html pages in game.There's a problem that same html page presented in web browser and in the game is different.In that page there's a svg line.

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <line x1="0" y1="0" x2="200" y2="200"
  style="stroke:rgb(255,0,0);stroke-width:2"/>
</svg>

When I set the stroke-width at a larger value, 50,100... it's length also became larger.

image.png.51531f5325efec8e5eafa799d45b8388.png

image.png.1f7045a0aa4800604e9b4c2121b2f679.png

image.png.feb44a06abe647023061a6dd8e8c0bfa.png 

The first one, stroke-width=2.

The second one, stroke-width=50.

The third one, stroke-width=50 but in Chrome and Firefox.

I need the edge align to the center of the circle.And I found that if I set the stroke-linecap at "square",the line in web browser is same as the second.So I tried to set stroke-linecap at "butt", then the line in browser became correct.But it doesn't take effect in the Coherent UI.Is it a bug in the plugin?How can I fix it?

Thanks.

This topic is closed to new replies.

Advertisement