SFML community forums

Help => Graphics => Topic started by: Suhair Zain on November 05, 2015, 09:57:54 pm

Title: Query about including Harfbuzz in SFML
Post by: Suhair Zain on November 05, 2015, 09:57:54 pm
Hi,

As mentioned at http://en.sfml-dev.org/forums/index.php?topic=19293.0 (http://en.sfml-dev.org/forums/index.php?topic=19293.0), I need to display complex text layout in my app. I was directed to the github issue https://github.com/SFML/SFML/issues/246 (https://github.com/SFML/SFML/issues/246).

According to the PR at https://github.com/SFML/SFML/pull/624 (https://github.com/SFML/SFML/pull/624), a way to make Harfbuzz a part of SFML was given, but it was rejected/postponed for the following reasons: https://github.com/SFML/SFML/pull/624#issuecomment-57596111 (https://github.com/SFML/SFML/pull/624#issuecomment-57596111).

One of the reasons mentioned is the use of a LGPL licensed library. But I believe harfbuzz has a new version now which is licensed under the "Old MIT" license as given at https://github.com/behdad/harfbuzz/blob/master/COPYING (https://github.com/behdad/harfbuzz/blob/master/COPYING), so one less reason to not use Harfbuzz right?

Also, as specified at https://github.com/SFML/SFML/issues/799#issue-58459076 (https://github.com/SFML/SFML/issues/799#issue-58459076), freetype 2.5.3 can be configured to use Harfbuzz, whereas SFML uses a 2.5.5+ version.

Is there any way I implement the complex layout without going through a lot of manual source code changes, either using Harfbuzz or some other SFML implementation?
Title: Re: Query about including Harfbuzz in SFML
Post by: eXpl0it3r on November 06, 2015, 12:14:01 am
Looking at the Git history it seems that the license hasn't been edited in 3 years, which makes me wonder where that LGPL claim came from, Laurent? ;)

Complex layouts have come up more than once here and recently also on IRC and I think it's an important feature. Since I'm not very familiar with the code base, I can't really say how much trouble this will bring to sf::Font.
Title: Re: Query about including Harfbuzz in SFML
Post by: FRex on November 06, 2015, 01:09:35 am
Pango is under LGPL, maybe Laurent was thinking of that.