Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Query about including Harfbuzz in SFML  (Read 2017 times)

0 Members and 1 Guest are viewing this topic.

Suhair Zain

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
Query about including Harfbuzz in SFML
« on: November 05, 2015, 09:57:54 pm »
Hi,

As mentioned at 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.

According to the PR at 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.

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, so one less reason to not use Harfbuzz right?

Also, as specified at 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Query about including Harfbuzz in SFML
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Query about including Harfbuzz in SFML
« Reply #2 on: November 06, 2015, 01:09:35 am »
Pango is under LGPL, maybe Laurent was thinking of that.
Back to C++ gamedev with SFML in May 2023