FreeType version: 2.13.3
- Natives compiled with libraries: zlib, harfbuzz, libpng
- Сaching FTStruct objects to prevent unnecessary heap usage and duplicates
- Enumerations are actually java enums (so it would be hard to use the wrong argument in a FreeType function)
- Flag bitmask objects (as an alternative to integers)
- Java: 1.8 +
- Android SDK: 21 +
- Add the freetype-jni dependency.
- Add the natives you need:
- freetype-jni-natives-windows (Archetictures available: x86_64, x86)
- freetype-jni-natives-linux (Archetictures available: x86_64, aarch64)
- freetype-jni-natives-android (all ABIs available)
final FTLibrary lib = new FTLibrary();
final ByteBuffer data = ...;
final FTFace face = lib.newMemoryFace(data, 0);
// ...
face.done();
lib.done();
See other samples (99) in Tests.java
- Functions (93) - FreeType.cpp
- Structs (30) in headers (fully / partially): freetype.h, ftgloadr.h, ftglyph.h, ftimage.h, ftoutln.h, ftstroke.h, ftsystem.h
For bugs, questions and discussions please use the GitHub Issues.