12c393a42Smrg/* 22c393a42Smrg * Copyright © 2007 Keith Packard 32c393a42Smrg * 42c393a42Smrg * Permission to use, copy, modify, distribute, and sell this software and its 52c393a42Smrg * documentation for any purpose is hereby granted without fee, provided that 62c393a42Smrg * the above copyright notice appear in all copies and that both that copyright 72c393a42Smrg * notice and this permission notice appear in supporting documentation, and 82c393a42Smrg * that the name of the copyright holders not be used in advertising or 92c393a42Smrg * publicity pertaining to distribution of the software without specific, 102c393a42Smrg * written prior permission. The copyright holders make no representations 112c393a42Smrg * about the suitability of this software for any purpose. It is provided "as 122c393a42Smrg * is" without express or implied warranty. 132c393a42Smrg * 142c393a42Smrg * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 152c393a42Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 162c393a42Smrg * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 172c393a42Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 182c393a42Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 192c393a42Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 202c393a42Smrg * OF THIS SOFTWARE. 212c393a42Smrg */ 222c393a42Smrg 232c393a42Smrg#ifndef _FCFTINT_H_ 242c393a42Smrg#define _FCFTINT_H_ 252c393a42Smrg 262c393a42Smrg#include <fontconfig/fcfreetype.h> 272c393a42Smrg 282c393a42Smrg#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun) 292c393a42Smrg#define FcPrivate __attribute__((__visibility__("hidden"))) 302c393a42Smrg#define HAVE_GNUC_ATTRIBUTE 1 312c393a42Smrg#include "fcftalias.h" 322c393a42Smrg#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) 332c393a42Smrg#define FcPrivate __hidden 342c393a42Smrg#else /* not gcc >= 3.3 and not Sun Studio >= 8 */ 352c393a42Smrg#define FcPrivate 362c393a42Smrg#endif 372c393a42Smrg 382c393a42Smrg/* fcfreetype.c */ 392c393a42SmrgFcPrivate FcBool 402c393a42SmrgFcFreeTypeIsExclusiveLang (const FcChar8 *lang); 412c393a42Smrg 422c393a42SmrgFcPrivate FcBool 432c393a42SmrgFcFreeTypeHasLang (FcPattern *pattern, const FcChar8 *lang); 442c393a42Smrg 452c393a42SmrgFcPrivate FcChar32 462c393a42SmrgFcFreeTypeUcs4ToPrivate (FcChar32 ucs4, const FcCharMap *map); 472c393a42Smrg 482c393a42SmrgFcPrivate FcChar32 492c393a42SmrgFcFreeTypePrivateToUcs4 (FcChar32 private, const FcCharMap *map); 502c393a42Smrg 512c393a42SmrgFcPrivate const FcCharMap * 522c393a42SmrgFcFreeTypeGetPrivateMap (FT_Encoding encoding); 53ca08ab68Smrg 542c393a42Smrg#endif /* _FCFTINT_H_ */ 55