go-gl/gltext

Unbuildable

mibk opened this issue · 7 comments

mibk commented

Are there any plans to refresh this package to work with the new go-gl ecosystem? Can I help somehow? It depends for example on go-gl/glh which was moved to go-gl-legacy. Anybody's got an idea how to make this package working again?

Thank you.

Hi @mibk help would be welcome and very much appreciated! The original authors (myself included) are not very active in this scene at the moment, but making this work again would be much appreciated.

If glh is the main problem, there aren't many parts which will need fixing: https://github.com/go-gl/gltext/search?utf8=%E2%9C%93&q=glh

It's okay to import the code verbatim into this library if you like.

mibk commented

Ok. I'll try to make it work again.

Thanks! Let us know how it goes.

mibk commented

Hi. Have you noticed the pull request?

What's the status of this? It seems like this fix hasn't been merged, and it looks like it's using code.google.com repos for fonts. It looks like they've been moved to github, so it doesn't work.

@brychanrobot thanks for pinging this back onto the radar. Evidently the PR got missed in the past. I'm trying to find someone or some time of my own to take a look soon. @brychanrobot it would help if you could report if #16 works for you, and also if you submit a PR to update the font import path.

@pwaller I built my fix off of #16, there were a couple of minor api changes that I had to fix too. Anyway, when I tried running some simple code(just the stuff that mibk posted when he made the PR) I get really interesting output. I'm not sure if I'm doing something wrong, or if there are deeper problems with the library.

image

It was only supposed to print ABCDEFG, but I get ABCDEFG and then a second line with QRSTUVW below it. The height looks correct if it was one line centered. If I change the string to just something like ABC, then it changes to ABC and then QRS on the next line.