1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/harfbuzz/src/hb-face.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,117 @@ 1.4 +/* 1.5 + * Copyright © 2009 Red Hat, Inc. 1.6 + * 1.7 + * This is part of HarfBuzz, a text shaping library. 1.8 + * 1.9 + * Permission is hereby granted, without written agreement and without 1.10 + * license or royalty fees, to use, copy, modify, and distribute this 1.11 + * software and its documentation for any purpose, provided that the 1.12 + * above copyright notice and the following two paragraphs appear in 1.13 + * all copies of this software. 1.14 + * 1.15 + * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 1.16 + * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 1.17 + * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 1.18 + * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 1.19 + * DAMAGE. 1.20 + * 1.21 + * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 1.22 + * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 1.23 + * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 1.24 + * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 1.25 + * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 1.26 + * 1.27 + * Red Hat Author(s): Behdad Esfahbod 1.28 + */ 1.29 + 1.30 +#ifndef HB_H_IN 1.31 +#error "Include <hb.h> instead." 1.32 +#endif 1.33 + 1.34 +#ifndef HB_FACE_H 1.35 +#define HB_FACE_H 1.36 + 1.37 +#include "hb-common.h" 1.38 +#include "hb-blob.h" 1.39 + 1.40 +HB_BEGIN_DECLS 1.41 + 1.42 + 1.43 +/* 1.44 + * hb_face_t 1.45 + */ 1.46 + 1.47 +typedef struct hb_face_t hb_face_t; 1.48 + 1.49 +hb_face_t * 1.50 +hb_face_create (hb_blob_t *blob, 1.51 + unsigned int index); 1.52 + 1.53 +typedef hb_blob_t * (*hb_reference_table_func_t) (hb_face_t *face, hb_tag_t tag, void *user_data); 1.54 + 1.55 +/* calls destroy() when not needing user_data anymore */ 1.56 +hb_face_t * 1.57 +hb_face_create_for_tables (hb_reference_table_func_t reference_table_func, 1.58 + void *user_data, 1.59 + hb_destroy_func_t destroy); 1.60 + 1.61 +hb_face_t * 1.62 +hb_face_get_empty (void); 1.63 + 1.64 +hb_face_t * 1.65 +hb_face_reference (hb_face_t *face); 1.66 + 1.67 +void 1.68 +hb_face_destroy (hb_face_t *face); 1.69 + 1.70 +hb_bool_t 1.71 +hb_face_set_user_data (hb_face_t *face, 1.72 + hb_user_data_key_t *key, 1.73 + void * data, 1.74 + hb_destroy_func_t destroy, 1.75 + hb_bool_t replace); 1.76 + 1.77 + 1.78 +void * 1.79 +hb_face_get_user_data (hb_face_t *face, 1.80 + hb_user_data_key_t *key); 1.81 + 1.82 +void 1.83 +hb_face_make_immutable (hb_face_t *face); 1.84 + 1.85 +hb_bool_t 1.86 +hb_face_is_immutable (hb_face_t *face); 1.87 + 1.88 + 1.89 +hb_blob_t * 1.90 +hb_face_reference_table (hb_face_t *face, 1.91 + hb_tag_t tag); 1.92 + 1.93 +hb_blob_t * 1.94 +hb_face_reference_blob (hb_face_t *face); 1.95 + 1.96 +void 1.97 +hb_face_set_index (hb_face_t *face, 1.98 + unsigned int index); 1.99 + 1.100 +unsigned int 1.101 +hb_face_get_index (hb_face_t *face); 1.102 + 1.103 +void 1.104 +hb_face_set_upem (hb_face_t *face, 1.105 + unsigned int upem); 1.106 + 1.107 +unsigned int 1.108 +hb_face_get_upem (hb_face_t *face); 1.109 + 1.110 +void 1.111 +hb_face_set_glyph_count (hb_face_t *face, 1.112 + unsigned int glyph_count); 1.113 + 1.114 +unsigned int 1.115 +hb_face_get_glyph_count (hb_face_t *face); 1.116 + 1.117 + 1.118 +HB_END_DECLS 1.119 + 1.120 +#endif /* HB_FACE_H */