harfbuzz

    MoonBit port of HarfBuzz.

    harfbuzz
    text
    shaping
    font
    Download zip
    Version
    0.2.0
    License
    Apache-2.0
    Last updated
    17 days ago
    Downloads
    13K

    No dependencies

    #harfbuzz.mbt

    MoonBit port of HarfBuzz, the open-source text shaping engine. The original HarfBuzz code is copyrighted by its upstream authors. This repository is distributed under Apache 2.0 by International Digital Economy Academy, and the upstream HarfBuzz notice texts are preserved verbatim in NOTICE.

    #License

    MoonBit-specific code in this repository is licensed under Apache 2.0. See LICENSE for the project license and NOTICE for the concatenated upstream HarfBuzz notice texts.

    #Building

    (Instructions currently mirrored from src/README.mbt.md)

    (cd examples/js_svg && moon build --target js --release) python3 -m http.server

    Then open:

    http://localhost:8000/examples/js_svg/index.html

    #Status

    Port is under active development; see docs/PORTING_PLAN.md for details and current progress.

    #Toolchain migration (0.2.0)

    ColorLine.extend is now ColorLine.extend_mode because extend is a MoonBit keyword. Its JSON key remains extend. Existing Result-based APIs and explicit trait extension methods are preserved.

    CI checks every target in debug and release mode and tests an extracted package through an independent consumer. It denies all warnings except warning 78 (Result-returning APIs retained for compatibility) and warning 33 (large generated font fixtures). These two existing warning classes remain visible in normal moon check output.

    #harfbuzz.mbt

    This is the MoonBit port of HarfBuzz. The module name in moon.mod.json is a placeholder and can be updated once the publishing owner is decided.

    #License

    Code in this directory is part of the harfbuzz.mbt project and is licensed under Apache 2.0 by International Digital Economy Academy. See the top-level LICENSE and NOTICE files for the full project license and preserved upstream notices.

    #Examples

    • JS SVG demo: examples/js_svg

    (cd examples/js_svg && moon build --target js --release) python3 -m http.server

    Then open:

    http://localhost:8000/examples/js_svg/index.html

    ///|
    test "module version placeholder" {
    inspect(@harfbuzz.version, content="0.0.0")
    }

    version

    let version : String

    version_atleast

    fn version_atleast(major : Int, minor : Int, micro : Int) -> Bool

    version_major

    let version_major : Int

    Public version string for the module. This is a placeholder while the port is bootstrapped.

    version_micro

    let version_micro : Int

    version_minor

    let version_minor : Int

    version_string

    fn version_string() -> String

    version_tuple

    fn version_tuple() -> (Int, Int, Int)

    Source Files