Skip to main content

Padding relative to Letter Height, rather than to Line Height

  • February 3, 2023
  • 1 reply
  • 506 views

Stefan_Sabadas

There are many cases when i need to set padding or space between items relative to the letter height of some text. But currently in Figma, theres always that bounding box around the text which is determined by line height of that font at that font size. however, visually, u need to set the distance between such text and another element considering just the text that can be seen, without the bounding box.

An option to somehow get rid of that bounding box, or make it the same height as the highest letter in your copy, without messing with the line height (or row spacing) of the text, which needs to be adjusted separately, would be gold.

This topic has been closed for comments

1 reply

  • 0 replies
  • May 4, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings