How to render svg elements with crisp edges while still keeping anti-aliasing?

后端 未结 3 1545
花落未央
花落未央 2020-12-07 15:39

Is there a way to render svg elements with crisp edges while still keeping anti-aliasing?

I\'m creating a browser-based tool that works in modern br

3条回答
  •  悲&欢浪女
    2020-12-07 16:17

    [I'm posting this as an answer rather than a comment, because I want to post a picture. Otherwise, this is a comment on the useful post by @defghi1977 . +1 to him, by the way.]

    
    
        
        
        
        
    
    

    Produced

    enter image description here

    This was rendered by Firefox 38.0.5 .
    In Internet Explorer 11, both shape-rendering setting produces the same result with anti-aliasing and not crisp.

提交回复
热议问题