String Height

Posted on
  • Is there an equivalent of .stringWidth but for height? Would be useful for scaling text despite the selected font.

  • Or you could look at the vector fonts....

  • Afraid there isn't anything - with vector fonts, you basically specify the height with setFontVector(height), and the built-in font is 6px high. For custom fonts you'd have to figure it out yourself...

  • It didn't occur to me that the value for setFontVector was the height, the reference just says size. Thanks

  • Thanks - I'll try and update the docs...

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

String Height

Posted by Avatar for MrTimcakes @MrTimcakes

Actions