Search found 4 matches
- Tue Jan 07, 2025 12:30 pm
- Forum: Support and Development
- Topic: Inconsistent values from Font:getWidth()
- Replies: 4
- Views: 84
Re: Inconsistent values from Font:getWidth()
OK. Any way of otherwise getting the actual bounding box of the rendered text?
- Tue Jan 07, 2025 12:17 pm
- Forum: Support and Development
- Topic: Inconsistent values from Font:getWidth()
- Replies: 4
- Views: 84
Re: Inconsistent values from Font:getWidth()
It's likely a bug in your code Thanks to you, I've found it. I needed to simplify some stuff in order to make the code understandable, and by doing so I noticed I was converting the text to uppercase *after* calculating the font width. So horizontal centering now works as expected. y.png However, v...
- Tue Jan 07, 2025 11:02 am
- Forum: Support and Development
- Topic: Inconsistent values from Font:getWidth()
- Replies: 4
- Views: 84
Inconsistent values from Font:getWidth()
The rectangles below are drawn with the values returned from the code below and are rendered at the same position as the text: w = love.graphics.getFont():getWidth(someString) h = love.graphics.getFont():getHeight() , mwq.png mwy.png mxm.png I can see no pattern or consistency here. It happens with ...
- Sun Jan 05, 2025 9:17 am
- Forum: Support and Development
- Topic: Font rotation & anchor point
- Replies: 3
- Views: 185
Font rotation & anchor point
Hello, I'm new to Love2D but have prior experience in other languages and frameworks. I'm trying to draw the individual characters of a string around a circle, with the baseline of each character pointing to the circle's center, at a specified radius (imagine a clock face with roman numerals). After...