SDFImage fully supports masking, this scene is just showcase of that.

Untitled

The only issue is when Shadow or second Outline layer with Softnessenabled, masked image gets aliased as if Shadow Width was 1.

Untitled