title: How to make the label size in QML according to the size of the text?
body: <p>I can't make the height of the label exactly the height of the font, there is a gap at the bottom. Can you please tell me how to remove it?    <a href="https://i.stack.imgur.com/JAkRQ.png" rel="nofollow noreferrer">my label image</a></p>
  <pre><code>Label
  {
    id: autoLabel
    leftInset: 0
    topInset: 0
    bottomInset: 0
  
    background: Rectangle
    {
      anchors.bottomMargin: 0
      color: &quot;white&quot;
      border.width: 0
    }
  
    Text
    {
      id: autoText
      anchors.fill: autoLabel
      anchors.leftMargin: 0
      anchors.topMargin: 0
      anchors.bottomMargin: 0
      color: PendulumStyle.primaryTextColor
      text: &quot;AUTO&quot;
      font.family: PendulumStyle.fontFamily
      font.pixelSize: 35
      font.styleName: &quot;Bold&quot;
      padding: 0
    }
    width: autoText.contentWidth
    height: autoText.contentHeight
  
    x: mainRectangle.x + 30
    y: checkBox.y - checkBox.height / 2
  }
  </code></pre>