Skip to content
项目

关于

A library for complex text layout

开发工具

这些数字如何统计

实测星标增长

24小时
+1
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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

探索相关项目

加载中…