Page 8 of 10
Re: a Rich Text library for LÖVE
Posted: Thu Jun 23, 2011 12:43 am
by luminosity
Just played around with the distortion problems. If I put a solid black background behind the text it looks much better than with the semi transparent one -- in fact it looks much like my other tooltips that use frambuffers. Looking closely at the text it all looks a little distorted if it's in a framebuffer. Wondering now if this is a problem with framebuffers in love, or something with my ATI card possibly (HD5850 fwiw).
Re: a Rich Text library for LÖVE
Posted: Thu Jun 23, 2011 1:00 am
by Jasoco
So, where's the current stable version of this and how do I use it again? What's the syntax? Also, does it work with image fonts?
Re: a Rich Text library for LÖVE
Posted: Thu Jun 23, 2011 6:59 am
by Robin
Thanks, luminosity, I hope I get around to incorporate your changes this week.
Jasoco wrote:So, where's the current stable version of this
http://github.com/gvx/richtext, but I would wait until the bugs are fixed before downloading it.
Jasoco wrote:and how do I use it again? What's the syntax?
See
https://github.com/gvx/richtext#readme (under the header "usage").
Jasoco wrote:Also, does it work with image fonts?
I have no idea. Probably? I never tried.
Re: a Rich Text library for LÖVE
Posted: Thu Jun 23, 2011 9:10 am
by bartbes
luminosity wrote:Wondering now if this is a problem with framebuffers in love, or something with my ATI card possibly (HD5850 fwiw).
Perhaps fonts in framebuffers have some problems atm, I've heard this complaint more often. Let's hope 0.8.0's new font engine changes this.
Re: a Rich Text library for LÖVE
Posted: Thu Jun 23, 2011 1:36 pm
by Robin
bartbes wrote:Let's hope 0.8.0's new font engine changes this.
I also hope 0.8.0's new font engine doesn't break the things that do work in Rich Text.
Re: a Rich Text library for LÖVE
Posted: Thu Jun 23, 2011 9:55 pm
by Jasoco
Robin wrote:Thanks, luminosity, I hope I get around to incorporate your changes this week.
Jasoco wrote:So, where's the current stable version of this
http://github.com/gvx/richtext, but I would wait until the bugs are fixed before downloading it.
Jasoco wrote:and how do I use it again? What's the syntax?
See
https://github.com/gvx/richtext#readme (under the header "usage").
Jasoco wrote:Also, does it work with image fonts?
I have no idea. Probably? I never tried.
That's why I want to try it. So I can let you know if it works with them. Maybe get it to work with them if it doesn't already.
Edit: Good news, everyone! It does.
- JmTs1.png (5.75 KiB) Viewed 373 times
Kind of? Not sure why my three fonts are all misplaced. But I suspect it has something to do with each one having a different line height. But since in my games I would probably use one font for each line of text anyway, I guess it's not as big a deal.
Hmmm.. it also seems to screw up my own window resizing methods. If I resize the window, the FrameBuffer that the text uses (Not mine) gets all distorted. I bet it can be fixed if I recreate the RichText call after resizing.
- ZAfXG.png (8.84 KiB) Viewed 373 times
Re: a Rich Text library for LÖVE
Posted: Sun Jun 26, 2011 8:48 pm
by Robin
I made some fixes and other changes, unfortunately this crap keeps getting worse. I made a small change that should make luminosity's change work even after the last {tag}, but somehow it doesn't want to wrap at all anymore. It's all up on GitHub, if anyone wants to lend a an eyeball, please do so, because this is frustrating as hell.
Re: a Rich Text library for LÖVE
Posted: Sun Jun 26, 2011 10:00 pm
by kikito
I'd gladly lend a hand, but I don't understand what the issue is. Can you upload a sample file illustrating the problem?
Re: a Rich Text library for LÖVE
Posted: Mon Jun 27, 2011 6:03 am
by Robin
Sure.
This should wrap after 200 pixels. It doesn't ever wrap. It has two newlines. If you remove those, there is
some wrapping, but sometimes it's too late and other times it's too early.
If you could help my, that would be awesome.
Re: a Rich Text library for LÖVE
Posted: Mon Jun 27, 2011 9:33 am
by miko
Robin wrote:Sure.
The attachment richtext.love is no longer available
This should wrap after 200 pixels. It doesn't ever wrap. It has two newlines. If you remove those, there is
some wrapping, but sometimes it's too late and other times it's too early.
If you could help my, that would be awesome.
This is what I see (attached). So does it work for me as expected?