Align text layer vertically based on its baseline and cap height