msdf-atlas-gen icon indicating copy to clipboard operation
msdf-atlas-gen copied to clipboard

Add `-padding` argument

Open ZeroMemes opened this issue 11 months ago • 1 comments

Arranges glyphs such that there are a # of empty pixels equal to value specified in the -padding argument on all sides.

-pxrange 5 image

-pxrange 5 -padding 5 image

ZeroMemes avatar Feb 27 '24 00:02 ZeroMemes

On second thought, this approach is not foolproof and could cause issues with specific drop shadow and pixel range setups (which is what I intended to solve). The atlas and plane bounds need to be extended as well to allow the shadow offset texture coordinates to actually be sampled.

ZeroMemes avatar Feb 28 '24 01:02 ZeroMemes