Coder Social home page Coder Social logo

Using SheenBidi with utf8 about sheenbidi HOT 6 CLOSED

tehreer avatar tehreer commented on May 27, 2024
Using SheenBidi with utf8

from sheenbidi.

Comments (6)

behdad avatar behdad commented on May 27, 2024

Check out libraqm as well, which ties FriBidi, HarfBuzz, and FreeType. If FriBidi's license is an issue, I suggest integrating SheenBidi into libraqm. cc @khaledhosny

from sheenbidi.

ericoporto avatar ericoporto commented on May 27, 2024

@behdad thank you so much for Harfbuzz! I was worried but it took me one day and a half to get going with it - properly rendering Persian.

I looked into Fribidi, but I wasn't sure if the license would block console ports, so I decided to look for libraries with other licenses. The game engine I am looking into already has Switch and Xbox ports. Fribidi does look neat, so I may just use it, but then I am still not sure I can use it in iOS. :/

from sheenbidi.

behdad avatar behdad commented on May 27, 2024

Thanks @ericoporto. FriBidi is LGPL'ed, which can cause problem in walled-garden models like iOS indeed. I can't offer any legal advice. Feel free to discuss; I'm tagging @dov who is the current maintainer.

from sheenbidi.

mta452 avatar mta452 commented on May 27, 2024

@ericoporto The last section in README provides example code for using SheenBidi with UTF-8 encoding.
If you want to look at a game, supertuxkart is using it.
If you're considering to use it in iOS or Android, Tehreer-Cocoa and Tehreer-Android are available.

from sheenbidi.

ericoporto avatar ericoporto commented on May 27, 2024

@mta452 thank you so much! I will dive into super tux kart to see how they pulled - I think projects using it could be a line in README.

Edit: ok, found out the magic was modifying SDL_ttf directly, I will have to do this on the outside or drop SDL_ttf entirely, since that SDL_ttf doesn't track the main SDL_ttf repository.

I plan to use SheenBidi on Android and iOS too, but I like having the same codebase, so I will look into using SheenBidi directly - I am already using SDL or Allegro raster functions so I will see how to wrap it all together. You can close this.

from sheenbidi.

mta452 avatar mta452 commented on May 27, 2024

Great, I'll close the issue then.

from sheenbidi.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.