CreedVI / Raylib-J

Handmade Java binding for Raylib
zlib License
97 stars 16 forks source link

Default font does not render properly #16

Closed CreedVI closed 3 years ago

CreedVI commented 3 years ago

Describe the bug Currently the default font renders as solid bars that are the max height and width of the character.

To Reproduce Steps to reproduce the behavior:

  1. use the DrawText() method to render text using the default font to the screen

Expected behavior Text should render with the Raylib default font

CreedVI commented 3 years ago

After troubleshooting and looking into the texture in RenderDoc I discovered that the image data was not being properly loaded into the buffer.

I also discovered that this texture directly impacts the fragment shader. Thus I will be closing issue #14 and tracking both issues here.

CreedVI commented 3 years ago

After digging a bit more columns 31, 63, 95, and 127 of the texture buffer are loading incorrectly causing lines to cut through the characters that fall on those columns.

CreedVI commented 3 years ago

Fixed with commit b37cde0