GithubHelp home page GithubHelp logo

ebraminio / rustybuzz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from razrfalcon/rustybuzz

0.0 2.0 0.0 2.46 MB

An incremental harfbuzz port to Rust

License: MIT License

Rust 49.24% C 3.90% C++ 43.94% Python 2.91%

rustybuzz's Introduction

rustybuzz

Build Status

rustybuzz is an attempt to incrementally port harfbuzz to Rust. But while harfbuzz does a lot of things (shaping, subseting, font querying, etc.), rustybuzz is strictly an OpenType shaper.

You can use it already, since we simply linking hardbuzz statically. And we're testing rustybuzz against harfbuzz test suite.

Embedded harfbuzz version: 2.6.4

Changes

  • Subsetting is out of scope and removed.
  • Malformed font is an error now. harfbuzz accepts malformed fonts, but doesn't do shaping in this case.
  • harfbuzz configured to not depend on system libraries, like glib, coretext, freetype, icu. So it relies only on internal implementation, which should be enough in most cases.

Notes about the port

Thanks to Cargo, rustybuzz is pretty modular, unlike harfbuzz, which is basically a monolith. And it can be roughly split into these modules: shaping, subsetting, font parsing, Unicode functions, containers and utilities. While rustybuzz implements only the shaping. Font parsing is handled by the ttf-parser, which is not based on harfbuzz and has its own architecture. Unicode functions also handled by external crates. And most of the containers and utilities were already implemented in the Rust std.

License

rustybuzz is licensed under the MIT.

harfbuzz is licensed under the Old MIT

rustybuzz's People

Contributors

razrfalcon avatar

Watchers

James Cloos avatar  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.