jaylib icon indicating copy to clipboard operation
jaylib copied to clipboard

Address #56: two-argument load-font-ex

Open sogaiu opened this issue 1 year ago • 2 comments

This PR is an attempt to address #56.

The approach taken is for load-font-ex to also handle being called with 2 arguments (in addition to its existing ability to handle 3 arguments).

If called with 2 arguments, the 3rd and 4th arguments to LoadFontEx are set to NULL and 0 respectively.


I've made a demo in a fork.

If interested in trying, instructions are here and the demo code file is here.

sogaiu avatar Jan 17 '24 14:01 sogaiu

text_cfuns should also be updated to document the new signature; otherwise this won't be discoverable.

jangler avatar Jan 17 '24 15:01 jangler

Good point.

sogaiu avatar Jan 18 '24 01:01 sogaiu