1fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod/*
2fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * Copyright © 2014  Google, Inc.
3fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod *
4fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod *  This is part of HarfBuzz, a text shaping library.
5fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod *
6fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * Permission is hereby granted, without written agreement and without
7fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * license or royalty fees, to use, copy, modify, and distribute this
8fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * software and its documentation for any purpose, provided that the
9fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * above copyright notice and the following two paragraphs appear in
10fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * all copies of this software.
11fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod *
12fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * DAMAGE.
17fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod *
18fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
21fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod *
24fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod * Google Author(s): Behdad Esfahbod
25fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod */
26fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
27fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod#ifndef HB_FC_H
28fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod#define HB_FC_H
29fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
30fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod#include "hb.h"
31fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
32fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod#include <fontconfig/fontconfig.h>
33fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
34fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad EsfahbodHB_BEGIN_DECLS
35fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
36fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
37fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbodhb_font_t *
38fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbodhb_fc_font_create (FcPattern *font);
39fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
40fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbodhb_bool_t
41fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbodhb_fc_can_render (hb_font_t *font, const char *text);
42fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
43fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
44fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad EsfahbodHB_END_DECLS
45fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod
46fe97b65a54a416229e28b1c931e5e01ca19f31d3Behdad Esfahbod#endif /* HB_FC_H */
47