DWilliames / paddy-sketch-plugin

Automated padding, spacing and alignment for your Sketch layers
MIT License
2.17k stars 61 forks source link

Padding applying to text boxes bounding box #133

Open eladnova opened 6 years ago

eladnova commented 6 years ago

Feature request / enhancement

Padding around text will often be start from the text box edge rather than the text itself. Is there any way around this other than setting line height?

In the example below, 5px padding has been applied to all edges but the reality is 9px on top

text-padding

blaskotron commented 5 years ago

I'm not sure there is anything paddy could detect, beyond line height, unless the characters were outlined.

You could have two different symbols with different line heights, one for descender, one for baseline.