Skip to content

Fork of https://github.com/mono/skia. Implements additional C (but incomplete) APIs for modules like SkParagraph. Builds as an external C library that interfaces with Skia.

Notifications You must be signed in to change notification settings

DSLstandard/skia-c-api

Repository files navigation

skia-c-api

A Skia (milestone: m129) API for C, and a fork of https://github.com/mono/skia with the following changes:

  • Added additional (but very incomplete) C APIs for modules like SkUnicode, SkParagraph, & SkSVG.
  • Modified to build an external shared/static C library that interfaces with Skia.

This project was originally a part of https://github.com/DSLstandard/hs-skia, but it is now unused in hs-skia. To not be wasteful, the project sources have been extracted to form a standalone Git project for others to use.

To build the shared & static libraries of @skia-c-api@, run:

$ nix develop  # if you have Nix, this pulls in cmake, ninja, clang, and skia (with modules skparagraph, skunicode, & sksvg enabled)
$ mkdir -p build/
$ cd build/
$ cmake -G Ninja ..
$ ninja
$ ls libskia*   # Check outputs
libskia_capi_shared.so  libskia_capi_static.a

About

Fork of https://github.com/mono/skia. Implements additional C (but incomplete) APIs for modules like SkParagraph. Builds as an external C library that interfaces with Skia.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published