Created
September 7, 2019 03:47
-
-
Save ianloic/91c8c2784ea9f9db1ab07afbe1b3cf7b to your computer and use it in GitHub Desktop.
fontconfig is easy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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