Blame src/hb-coretext.h

Packit 874993
/*
Packit 874993
 * Copyright © 2012  Mozilla Foundation.
Packit 874993
 *
Packit 874993
 *  This is part of HarfBuzz, a text shaping library.
Packit 874993
 *
Packit 874993
 * Permission is hereby granted, without written agreement and without
Packit 874993
 * license or royalty fees, to use, copy, modify, and distribute this
Packit 874993
 * software and its documentation for any purpose, provided that the
Packit 874993
 * above copyright notice and the following two paragraphs appear in
Packit 874993
 * all copies of this software.
Packit 874993
 *
Packit 874993
 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
Packit 874993
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
Packit 874993
 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
Packit 874993
 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
Packit 874993
 * DAMAGE.
Packit 874993
 *
Packit 874993
 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
Packit 874993
 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
Packit 874993
 * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
Packit 874993
 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
Packit 874993
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
Packit 874993
 *
Packit 874993
 * Mozilla Author(s): Jonathan Kew
Packit 874993
 */
Packit 874993
Packit 874993
#ifndef HB_CORETEXT_H
Packit 874993
#define HB_CORETEXT_H
Packit 874993
Packit 874993
#include "hb.h"
Packit 874993
Packit 874993
#include <TargetConditionals.h>
Packit 874993
#if TARGET_OS_IPHONE
Packit 874993
#  include <CoreText/CoreText.h>
Packit 874993
#  include <CoreGraphics/CoreGraphics.h>
Packit 874993
#else
Packit 874993
#  include <ApplicationServices/ApplicationServices.h>
Packit 874993
#endif
Packit 874993
Packit 874993
HB_BEGIN_DECLS
Packit 874993
Packit 874993
Packit 874993
#define HB_CORETEXT_TAG_MORT HB_TAG('m','o','r','t')
Packit 874993
#define HB_CORETEXT_TAG_MORX HB_TAG('m','o','r','x')
Packit 874993
Packit 874993
Packit 874993
HB_EXTERN hb_face_t *
Packit 874993
hb_coretext_face_create (CGFontRef cg_font);
Packit 874993
Packit 874993
Packit 874993
HB_EXTERN CGFontRef
Packit 874993
hb_coretext_face_get_cg_font (hb_face_t *face);
Packit 874993
Packit 874993
HB_EXTERN CTFontRef
Packit 874993
hb_coretext_font_get_ct_font (hb_font_t *font);
Packit 874993
Packit 874993
Packit 874993
HB_END_DECLS
Packit 874993
Packit 874993
#endif /* HB_CORETEXT_H */