Giter VIP home page Giter VIP logo

libraqm's Introduction

Raqm

Build

Raqm is a small library that encapsulates the logic for complex text layout and provides a convenient API.

It currently provides bidirectional text support (using FriBiDi or SheenBidi), shaping (using HarfBuzz), and proper script itemization. As a result, Raqm can support most writing systems covered by Unicode.

The documentation can be accessed on the web at:

https://host-oman.github.io/libraqm/

Raqm (Arabic: رَقْم) is writing, also number or digit and the Arabic word for digital (رَقَمِيّ) shares the same root, so it is a play on “digital writing”.

Building

Raqm depends on the following libraries:

To build the documentation you will also need:

To install dependencies on Fedora:

sudo dnf install freetype-devel harfbuzz-devel fribidi-devel meson gtk-doc

To install dependencies on Ubuntu:

sudo apt-get install libfreetype6-dev libharfbuzz-dev libfribidi-dev meson gtk-doc-tools

On Mac OS X you can use Homebrew:

brew install freetype harfbuzz fribidi meson gtk-doc
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog" # for the docs

Once you have the source code and the dependencies, you can proceed to build. To do that, run the customary sequence of commands in the source code directory:

$ meson build
$ ninja -C build
$ ninja -C build install

To build the documentation, pass -Ddocs=true to the meson.

To run the tests:

$ ninja -C build test

Contributing

Once you have made a change that you are happy with, contribute it back, we’ll be happy to integrate it! Just fork the repository and make a pull request.

Projects using Raqm

  1. ImageMagick
  2. LibGD
  3. FontView
  4. Pillow
  5. mplcairo
  6. CEGUI

The following projects have patches to support complex text layout using Raqm:

  1. SDL_ttf: https://bugzilla.libsdl.org/show_bug.cgi?id=3211
  2. Pygame: https://bitbucket.org/pygame/pygame/pull-requests/52
  3. Blender: https://developer.blender.org/D1809

libraqm's People

Contributors

khaledhosny avatar shamsahamed avatar mzn723 avatar anood avatar radarhere avatar fahad-alsaidi avatar asmaal-bahanta avatar fanc999-1 avatar ibtisamn avatar brawer avatar niello avatar nullgemm avatar vorlov-playrix avatar abderraouf-adjal avatar aliyousuf avatar diizzyy avatar floriandenis avatar hugovk avatar ident avatar hellozee avatar moceap avatar pierrejoye avatar remicollet avatar stefan0xc avatar gouchi avatar aelmahmoudy avatar

Watchers

 avatar

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.