mcpp index

freedesktop.fontconfig

import

fontconfig 2.15.0 — font discovery and matching, every generated file produced by build.mcpp

import freedesktop.fontconfig;
#include <fontconfig/fontconfig.h>

Module name read from the upstream `export module` declaration in src/fontconfig.cppm.

mcpp add freedesktop.fontconfig@2.15.0

Usage

From this repository's own test project — built and run by CI, not written for the website.

// freedesktop.fontconfig — the three generated tables, exercised through the
// public API.
//
// WHAT CAN BE ASSERTED WITHOUT FONTS
//
// This package compiles the four runtime paths EMPTY on purpose (see the
// manifest), so `FcInit()` on a runner with no `FONTCONFIG_FILE` finds no
// configuration and no fonts. That is the intended behaviour, not a defect,
// and it means a font-matching test would only be asserting that the runner
// has a desktop.
//
// The three GENERATED tables need none of that, and they are what this fork
// exists to produce:
//
//   fclang.h        281 .orth files compiled into charset bitmaps
//   fccase.h        Unicode case folding
//   fcobjshash.h    object-name → id, the gperf replacement
//
// Each is reachable through a public entry point that takes no config.

#ifdef __linux__

// …

tests/examples/fontconfig/tests/fontconfig.cpp · project tests/examples/fontconfig

Build · upstream manifest

modules
freedesktop.fontconfig
targets
fontconfig (lib)
language
c++23
manifest version
2.15.0
dependencies
compat
source
https://raw.githubusercontent.com/mcpplibs/fontconfig/v2.15.0/mcpp/fontconfig/mcpp.toml

Versions

VersionPlatforms Mirrorssha256
2.15.0 latest Linux GLOBAL CN 505938aeeafe…