Skip to content

Instantly share code, notes, and snippets.

@ynkdir
ynkdir / pango-font-metrics-test.c
Created Mar 1, 2011
pango-font-metrics-test.c
View pango-font-metrics-test.c
/*
* $ cc `pkg-config pangocairo --cflags --libs` pango-font-metrics-test.c
*
* $ LC_ALL=C ./a.out
* lang=default ascent=13.000000 descent=4.000000
* lang=C ascent=13.000000 descent=4.000000
* lang=ja-jp ascent=13.000000 descent=4.000000
*
* $ LC_ALL=en_US.UTF-8 ./a.out
* lang=default ascent=13.000000 descent=4.000000