h4570 / tyra

Game engine for PlayStation 2™
Apache License 2.0
487 stars 37 forks source link

Font support with freetype #177

Closed GDQR closed 1 month ago

GDQR commented 8 months ago

-Font Render -Load with Freetype -Set the font size. -font color support -Set correct color. -Support for setting the maximum font texture cache size. -Texture loaded with 32bit -New tutorial

Need #174 and #175 to work.

use this font for the example https://fonts.google.com/specimen/Roboto, it is licensed Apache version 2.0

https://github.com/h4570/tyra/assets/104105647/3867fc5f-c273-47a1-a085-58e0c9a9ce30

GDQR commented 8 months ago

I fix it later.

h4570 commented 8 months ago

Cool!

Thank you for the contributing. I will try to find some time this week and check all of the PRs

GDQR commented 8 months ago

No problem, meanwhile I will be solving these errors.

Wolf3s commented 8 months ago

Tutorial's 10 class Font is conflicting with font.hpp. The error can be found here: https://github.com/h4570/tyra/blob/master/tutorials/10-sprite-sheet/inc/font_sprite.hpp

GDQR commented 8 months ago

yeah, I'm going to delete the font of tutorial 10 and change it to the new one I made. this is how it looks now. I will make some corrections to make it look better tutorial10

Wolf3s commented 8 months ago

yeah, I'm going to delete the font of tutorial 10 and change it to the new one I made. this is how it looks now. I will make some corrections to make it look better tutorial10

Nice stuff.

GDQR commented 8 months ago

thanks

GDQR commented 8 months ago

ok, idk how to fix these 2 minor issues, I need help ;-; , also tutorial 10 now also needs the Roboto-black font.

h4570 commented 7 months ago

It looks really promising! I will do review in a sec...

h4570 commented 7 months ago

ok, idk how to fix these 2 minor issues, I need help ;-; , also tutorial 10 now also needs the Roboto-black font.

What minor issues did you encounter? Maybe I can help with smth.

GDQR commented 7 months ago

What minor issues did you encounter? Maybe I can help with smth.

Don't worry, they were some problems with the codacy static code analysis, I already solved them. but thanks anyway.

GDQR commented 7 months ago

I have to fix something else but this is how it looks. Fonts used: https://fonts.google.com/specimen/Roboto (bold) Segoe UI Emoji fontTyra

GDQR commented 7 months ago

I've finished now.

Wellinator commented 7 months ago

Awesome job!!!

matt-comm-link commented 4 months ago

Is this still in the pipeline?

GDQR commented 4 months ago

not for now, it currently works, but it would be nice to update/add some things

matt-comm-link commented 4 months ago

Would you say it's stable enough to migrate a project to in the meantime or would it be best left alone until it's ready to be merged?

GDQR commented 4 months ago

yeah it's stable, I was using it for my own project and I didn't have any problems.

Wellinator commented 1 month ago

@GDQR how's it going?! Is this feature finished? I was planning to add font support for my game.

GDQR commented 1 month ago

I was busy with other things, I didn't advance on this, there are things that I think can be improved, like the spacing between letters but currently it works, later I will make another PR that has fewer commits, i clarify that i don't know when I will do it.

Wolf3s commented 1 month ago

?

Wolf3s commented 1 month ago

@GDQR