summaryrefslogtreecommitdiff
path: root/Build/source/libs/harfbuzz/hbtest.c
blob: cd323c0accb10942768d32ba1a4a6a1bd9fecbd8 (plain)
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
/* hbtest.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 <graphite2/Font.h>

int main (int argc, char **argv)
{
  int nMajor, nMinor, nBugFix;

  printf ("%s: Compiled with HarfBuzz version %s; using %s\n",
          argv[0], HB_VERSION_STRING, hb_version_string ());
  gr_engine_version(&nMajor, &nMinor, &nBugFix);
  printf ("%s: Compiled with Graphite2 version %d.%d.%d; using %d.%d.%d\n",
          argv[0], GR2_VERSION_MAJOR, GR2_VERSION_MINOR, GR2_VERSION_BUGFIX,
          nMajor, nMinor, nBugFix);
  return 0;
}