Skip to content

Instantly share code, notes, and snippets.

@ianloic
Created September 7, 2019 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianloic/91c8c2784ea9f9db1ab07afbe1b3cf7b to your computer and use it in GitHub Desktop.
Save ianloic/91c8c2784ea9f9db1ab07afbe1b3cf7b to your computer and use it in GitHub Desktop.
fontconfig is easy
#include <fontconfig/fontconfig.h>
#include <stdio.h>
int main(int argc, char** argv) {
FcInit();
for (int i=1; i<argc; i++) {
FcChar8* lower = FcStrDowncase(argv[i]);
printf("%s\n", lower);
FcStrFree(lower);
}
}
CFLAGS=$(shell pkg-config --cflags fontconfig)
LDFLAGS=$(shell pkg-config --libs fontconfig)
example: example.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment