go-text / typesetting

High quality text shaping in pure Go.
Other
88 stars 11 forks source link

font management for gio #7

Closed gedw99 closed 1 year ago

gedw99 commented 3 years ago

https://github.com/tdewolff/canvas/blob/master/examples/gio/main.go

the lib has harfbuzz support which fyne and gio need :) go build --tags harfbuzz

andydotxyz commented 3 years ago

Cool. However, it uses github.com/benoitkugler/textlayout, which in turn has some LGPL components. We would need to be very careful to make sure that they are not compiled in, as it would (due to static compiling issues) push our BSD licenses to LGPL. I think this has been discussed on the channel already, but I wanted to make sure it was not overlooked.

gedw99 commented 3 years ago

ah good point about licensing. Here, if i may point out, is the code with the LGPL issues: https://github.com/benoitkugler/textlayout

And here is the code that calls github.com/benoitkugler/textlayout

https://github.com/tdewolff/canvas/blob/master/text/fribidi.go https://github.com/tdewolff/canvas/blob/master/text/harfbuzz.go

gedw99 commented 3 years ago

May contact him https://github.com/benoitkugler ? Ask for relicensing. Worth asking..

@benoitkugler ??

benoitkugler commented 3 years ago

Hi, harfbuzz is MIT licensed, but fribidi has LGPL license. We will probably need to implement our own bidi algorithm or port an implementation with a permissive license...

benoitkugler commented 1 year ago

Closing as outdated, now that textlayout has been merged.