1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* gr2test.c: Basic test for libharfbuzz
*
* Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
* You may freely use, modify and/or distribute this file.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <hb.h>
#include <stdio.h>
#include <unicode/ucnv.h>
#include <graphite2/Font.h>
int main (int argc, char **argv)
{
UVersionInfo icuVersion;
char icu_version[U_MAX_VERSION_STRING_LENGTH] = "";
int nMajor, nMinor, nBugFix;
printf ("%s: using HarfBuzz version %s\n", argv[0], hb_version_string ());
u_getVersion(icuVersion);
u_versionToString(icuVersion, icu_version);
printf ("%s: using ICU version %s\n", argv[0], icu_version);
gr_engine_version(&nMajor, &nMinor, &nBugFix);
printf ("%s: using Graphite2 version %d.%d.%d\n", argv[0], nMajor, nMinor, nBugFix);
return 0;
}
|