Page 3 of 4

Re: How to draw color emojis with love.graphics.print()

Posted: Wed Jan 19, 2022 5:33 am
by zorg
BrotSagtMist wrote: Wed Jan 19, 2022 5:06 am Images are pretty useless for that if you want seamless zooming.
Regular (ttf/odf) fonts are currently just loaded textures you draw and have the same issues regarding zooming whether the characters are emojis or not (unless you create another Font object with a different size)

Signed distance fields would be one solution that'd support smooth zoming if that's what you mean.

Re: How to draw color emojis with love.graphics.print()

Posted: Wed Jan 19, 2022 6:05 am
by BrotSagtMist
Yes i am aware, I am currently creating tons of fonts, when i show multiple fonts and zoom in/out i either get massive ram usage when i keep them or massive cpu usage from garbage collecting them. Something i found no solution for yet.
But the primary goal is to keep letters sharp not to save on resources.

What are signed distance fields and how would that solve the issue?

Re: How to draw color emojis with love.graphics.print()

Posted: Wed Jan 19, 2022 7:29 am
by zorg
BrotSagtMist wrote: Wed Jan 19, 2022 6:05 am Yes i am aware, I am currently creating tons of fonts, when i show multiple fonts and zoom in/out i either get massive ram usage when i keep them or massive cpu usage from garbage collecting them. Something i found no solution for yet.
But the primary goal is to keep letters sharp not to save on resources.

What are signed distance fields and how would that solve the issue?
https://en.wikipedia.org/wiki/Signed_distance_function
And specifically relating to fonts: https://github.com/Chlumsky/msdf-atlas-gen

Not sure if it completely solves the issue, but it seems like a decent compromise... also, i do admit the topic has gotten off the thread's original purpose :P

Re: How to draw color emojis with love.graphics.print()

Posted: Fri Jan 21, 2022 12:21 am
by Gunroar:Cannon()
grump wrote: Tue Jan 18, 2022 7:22 pm ????????????????????????????????????????????
Image
Yosh

Am I the only one seeing "The Batman(2022)" trailer everywhere by grump's post* (couldn't check out other recent posts too)?

Image
Or am I just crazy

Oh, and a little unrelated, but does font loading take a while? It's just that libgdx uses bitmaps but has the option to load fonts from a ttf file at runtime with the warning that the program would take considerably longer to start up. Is this just a Freetype font loader thing on their side or...?


*Just in case no one got this I was talking about question marks and how the trailer points to The Riddler being the villain with a lot of question marks and ... :|

Re: How to draw color emojis with love.graphics.print()

Posted: Fri Jan 21, 2022 3:46 pm
by grump
Gunroar:Cannon() wrote: Fri Jan 21, 2022 12:21 am
grump wrote: Tue Jan 18, 2022 7:22 pm ????????????????????????????????????????????
Am I the only one seeing "The Batman(2022)" trailer everywhere by grump's post* (couldn't check out other recent posts too)?
Even with your "explanation" I think that no one knows what the fuck you're talking about.

The question marks were my childish response to slime being an asshole to me in a context that is hidden to you.

Re: How to draw color emojis with love.graphics.print()

Posted: Fri Jan 21, 2022 4:51 pm
by GVovkiv
grump wrote: Fri Jan 21, 2022 3:46 pm Even with your "explanation" I think that no one knows what the fuck you're talking about.

The question marks were my childish response to slime being an asshole to me in a context that is hidden to you.
kinda rude

Re: How to draw color emojis with love.graphics.print()

Posted: Fri Jan 21, 2022 5:09 pm
by grump
GVovkiv wrote: Fri Jan 21, 2022 4:51 pm
grump wrote: Fri Jan 21, 2022 3:46 pm Even with your "explanation" I think that no one knows what the fuck you're talking about.

The question marks were my childish response to slime being an asshole to me in a context that is hidden to you.
kinda rude
I agree.

Re: How to draw color emojis with love.graphics.print()

Posted: Fri Jan 21, 2022 5:17 pm
by GVovkiv
grump wrote: Fri Jan 21, 2022 5:09 pm I agree.
Like, okay, i can get why you frustrated
But does that make you that angry so you even start call others assholes and so on?

Re: How to draw color emojis with love.graphics.print()

Posted: Fri Jan 21, 2022 5:36 pm
by grump
GVovkiv wrote: Fri Jan 21, 2022 5:17 pm Like, okay, i can get why you frustrated
But does that make you that angry so you even start call others assholes and so on?
Slime is a good dude and I commend his efforts to create good things. I have the utmost respect for the project he stands for. You, on the other hand, are not even qualified to pass judgment.

Re: How to draw color emojis with love.graphics.print()

Posted: Fri Jan 21, 2022 5:56 pm
by GVovkiv
grump wrote: Fri Jan 21, 2022 5:36 pm
GVovkiv wrote: Fri Jan 21, 2022 5:17 pm Like, okay, i can get why you frustrated
But does that make you that angry so you even start call others assholes and so on?
Slime is a good dude and I commend his efforts to create good things. I have the utmost respect for the project he stands for. You, on the other hand, are not even qualified to pass judgment.
ok