compat.freetype
#includeFreeType 2 — portable font engine with TrueType/CFF/WOFF/SVG support
#include <ft2build.h>
Curated in .xpkgindex/interfaces.json.
mcpp add compat.freetype@2.13.3
Usage
From this repository's own test project — built and run by CI, not written for the website.
// Smoke test — verify compat.freetype builds, links, and basic API works
#include <ft2build.h>
#include FT_FREETYPE_H
import std;
int main() {
FT_Library library{};
FT_Error error = FT_Init_FreeType(&library);
if (error) {
std::println("FT_Init_FreeType failed: {}", error);
return 1;
}
std::println("compat.freetype smoke test: ok");
FT_Done_FreeType(library);
return 0;
}
tests/examples/freetype/tests/init.cpp · project tests/examples/freetype
Build
- targets
freetype (lib)- language
c++23- C standard
gnu11- import std
- no
- include dirs
*/include
Sources (27)
*/src/base/ftbase.c*/src/base/ftinit.c*/src/base/ftglyph.c*/src/base/ftbitmap.c*/src/base/ftbbox.c*/src/base/ftmm.c*/src/autofit/autofit.c*/src/bdf/bdf.c*/src/cff/cff.c*/src/cid/type1cid.c*/src/cache/ftcache.c*/src/gzip/ftgzip.c*/src/lzw/ftlzw.c*/src/pcf/pcf.c*/src/pfr/pfr.c*/src/psaux/psaux.c*/src/pshinter/pshinter.c*/src/psnames/psnames.c*/src/raster/raster.c*/src/sdf/sdf.c*/src/sfnt/sfnt.c*/src/smooth/smooth.c*/src/svg/svg.c*/src/truetype/truetype.c*/src/type1/type1.c*/src/type42/type42.c*/src/winfonts/winfnt.c
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
2.13.3 latest |
LinuxWindowsmacOS | source | bc5c898e4756… |