Author Topic: charsize not filling fe.Text  (Read 5271 times)

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
charsize not filling fe.Text
« on: March 28, 2016, 02:21:23 PM »
I have fe.Text objects. When charsize property is set to default, autosize does not fill the height. Any idea how to remedy? I assume if I explicitly set the charsize, it's using points instead of pixels. Even still, it does not perfectly match the text object. Is this due to the default Arial font having some sort of spacing? I used the set_rgb() function to blue on the text objects to demonstrate.

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: charsize not filling fe.Text
« Reply #1 on: March 30, 2016, 07:01:40 PM »
I switched fonts trying to troubleshoot and the new font is spaced above the message area. Why are fonts not filling the height?


chrisvg

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: charsize not filling fe.Text
« Reply #3 on: April 08, 2016, 11:09:06 AM »
Standard characters won't completely fill a text box ... The text object allows for special characters and symbols that would need additional space vertically, hence the gap.  This is a standard practice and is a good thing.  You just need to allow for it in your designs.