On Sat, 4 Jul 2026 21:53:30 GMT, Marius Hanl <[email protected]> wrote:

> Could be, but I directly set the `Button` as right `HeaderBar` node. So there 
> is no container inbetween. Could still be a snapping problem in `Button` or 
> so, but it could also be something else. Shall I create a ticket?

Yeah, I think we should at least investigate and find out why that happens.

> Created: https://bugs.openjdk.org/browse/JDK-8387727

👍 

> Or maybe we can improve the SVG rasterization. For rendering SVG paths, it 
> seems to make a difference how the nodes are built and if the SVG is used as 
> `Shape`. I just used the `minimize` SVG path in 
> [SvgNode](https://github.com/Maran23/svgnode) and it looks good: <img 
> alt="image" width="31" height="19"
 
src="https://private-user-images.githubusercontent.com/66004280/617143371-328aaa10-badf-49d0-a862-023c8015cd58.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMyMTk4ODUsIm5iZiI6MTc4MzIxOTU4NSwicGF0aCI6Ii82NjAwNDI4MC82MTcxNDMzNzEtMzI4YWFhMTAtYmFkZi00OWQwLWE4NjItMDIzYzgwMTVjZDU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzA1VDAyNDYyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyYWMzZTViNmUwNDcwODY3N2ZkNjcxMDYyZjhkZThmZTdhMDFhZjEyYTJlMWJiNjliNmEyY2Q2NTYxYmU0ZGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.Rh5frRc769-Z-0VLZazQnVT62uY68oMDZbItyh_ujIw";>
 When I wrote it, I found out that the node structure and using a `SVGPath` as 
shapes influences how the SVG looks (e.g. if it looks blurry). So maybe we can 
improve
 that in the future!

Good idea, I think that's also something we should investigate.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2188#issuecomment-4884630788

Reply via email to