-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ttf does not provide TTF_GlyphIsProvided #615
Comments
ttf_measure APIs missing too, such as: https://wiki.libsdl.org/SDL2_ttf/TTF_MeasureUTF8 is there any reason for dropping those APIs, or just because of short of hands? |
Hi, sorry about the missing APIs 💦 I will add them once I'm available to do so. |
Hi @boredcoder411 and @shellohunter, I have added the bindings to the master branch. Would you like to try it out? |
measure APIs works as expected. thanks! will them be in next tag? btw, I noticed that v0.5 is in beta, it would be nice if sdl2 enums have enum-like typedefs in golang, something like this: type MouseButton uint8
const(
MouseButtonLeft MouseButton = 0
MouseButtonRight MouseButton = 1
) language servers can make use of it, providing better auto-completion. |
@shellohunter Yes! They will be in the next tag. We have constants |
constants are just integers, what I mean is to add specific types to group constants like this: https://gobyexample.com/enums , then go can make basic type checking to prevent misuse, and it will be more comprehensive to LSP. |
@shellohunter we do have the If there is, please create another issue! |
@veeableful just noticed they are already available in master branch. no issues anymore. |
Just wanted to share that I'm very grateful for v0.5.0 and the GlyphsIsProvided API specifically too. Thank you for all your dedication to this project |
It looks like
As per the documentation, the 16-bit version of that API doesn't account for a wide range of code points, including emoji (that latter being how I stumbled upon this problem). Given Go I appreciate this would be a breaking change but v0.5.0 is still in alpha so it's arguably a safe point to do so. Are you happy for me to raise a PR to make this change, is this something you'd rather pick up, or do you disagree with this approach entirely? |
Hi @lmorg, thank you bringing that up. I think keeping the function names predictable would be desirable so |
PR: #621 |
same as title, no TTF_GlyphIsProvided in the sdl2-ttf package
The text was updated successfully, but these errors were encountered: