When working with Adobe InDesign it is possible to select how text will be aligned vertically:
I am especially interested in having the text vertically centred and was wondering if this is also possible in Sketch.
I figured, that maybe these controls here are responsible for this, however they are greyed out:Thank you for your time.
Answer
Sketch only allows to vertically center text if they are fixed
and do not using the native line-height of the font. This is how you can active the vertical alignment options:
- Create a text layer
- Change alignment to
fixed
- Grap the handler at the bottom
- Resize the text box, vertical alignment options will be active
For Example:
When styling a button you can now stretch the fixed text area above the background layer, setting contrains to all directions an voi la, you have a full horizontal and vertical flexible button.
Attribution
Source : Link , Question Author : CrazyQwert , Answer Author : Gerrit Halfmann