annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/harfbuzz/hb-shape-plan.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 /*
jpayne@69 2 * Copyright © 2012 Google, Inc.
jpayne@69 3 *
jpayne@69 4 * This is part of HarfBuzz, a text shaping library.
jpayne@69 5 *
jpayne@69 6 * Permission is hereby granted, without written agreement and without
jpayne@69 7 * license or royalty fees, to use, copy, modify, and distribute this
jpayne@69 8 * software and its documentation for any purpose, provided that the
jpayne@69 9 * above copyright notice and the following two paragraphs appear in
jpayne@69 10 * all copies of this software.
jpayne@69 11 *
jpayne@69 12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
jpayne@69 13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
jpayne@69 14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
jpayne@69 15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
jpayne@69 16 * DAMAGE.
jpayne@69 17 *
jpayne@69 18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
jpayne@69 19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
jpayne@69 20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
jpayne@69 21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
jpayne@69 22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
jpayne@69 23 *
jpayne@69 24 * Google Author(s): Behdad Esfahbod
jpayne@69 25 */
jpayne@69 26
jpayne@69 27 #ifndef HB_H_IN
jpayne@69 28 #error "Include <hb.h> instead."
jpayne@69 29 #endif
jpayne@69 30
jpayne@69 31 #ifndef HB_SHAPE_PLAN_H
jpayne@69 32 #define HB_SHAPE_PLAN_H
jpayne@69 33
jpayne@69 34 #include "hb-common.h"
jpayne@69 35 #include "hb-font.h"
jpayne@69 36
jpayne@69 37 HB_BEGIN_DECLS
jpayne@69 38
jpayne@69 39 typedef struct hb_shape_plan_t hb_shape_plan_t;
jpayne@69 40
jpayne@69 41 HB_EXTERN hb_shape_plan_t *
jpayne@69 42 hb_shape_plan_create (hb_face_t *face,
jpayne@69 43 const hb_segment_properties_t *props,
jpayne@69 44 const hb_feature_t *user_features,
jpayne@69 45 unsigned int num_user_features,
jpayne@69 46 const char * const *shaper_list);
jpayne@69 47
jpayne@69 48 HB_EXTERN hb_shape_plan_t *
jpayne@69 49 hb_shape_plan_create_cached (hb_face_t *face,
jpayne@69 50 const hb_segment_properties_t *props,
jpayne@69 51 const hb_feature_t *user_features,
jpayne@69 52 unsigned int num_user_features,
jpayne@69 53 const char * const *shaper_list);
jpayne@69 54
jpayne@69 55 HB_EXTERN hb_shape_plan_t *
jpayne@69 56 hb_shape_plan_create2 (hb_face_t *face,
jpayne@69 57 const hb_segment_properties_t *props,
jpayne@69 58 const hb_feature_t *user_features,
jpayne@69 59 unsigned int num_user_features,
jpayne@69 60 const int *coords,
jpayne@69 61 unsigned int num_coords,
jpayne@69 62 const char * const *shaper_list);
jpayne@69 63
jpayne@69 64 HB_EXTERN hb_shape_plan_t *
jpayne@69 65 hb_shape_plan_create_cached2 (hb_face_t *face,
jpayne@69 66 const hb_segment_properties_t *props,
jpayne@69 67 const hb_feature_t *user_features,
jpayne@69 68 unsigned int num_user_features,
jpayne@69 69 const int *coords,
jpayne@69 70 unsigned int num_coords,
jpayne@69 71 const char * const *shaper_list);
jpayne@69 72
jpayne@69 73
jpayne@69 74 HB_EXTERN hb_shape_plan_t *
jpayne@69 75 hb_shape_plan_get_empty (void);
jpayne@69 76
jpayne@69 77 HB_EXTERN hb_shape_plan_t *
jpayne@69 78 hb_shape_plan_reference (hb_shape_plan_t *shape_plan);
jpayne@69 79
jpayne@69 80 HB_EXTERN void
jpayne@69 81 hb_shape_plan_destroy (hb_shape_plan_t *shape_plan);
jpayne@69 82
jpayne@69 83 HB_EXTERN hb_bool_t
jpayne@69 84 hb_shape_plan_set_user_data (hb_shape_plan_t *shape_plan,
jpayne@69 85 hb_user_data_key_t *key,
jpayne@69 86 void * data,
jpayne@69 87 hb_destroy_func_t destroy,
jpayne@69 88 hb_bool_t replace);
jpayne@69 89
jpayne@69 90 HB_EXTERN void *
jpayne@69 91 hb_shape_plan_get_user_data (hb_shape_plan_t *shape_plan,
jpayne@69 92 hb_user_data_key_t *key);
jpayne@69 93
jpayne@69 94
jpayne@69 95 HB_EXTERN hb_bool_t
jpayne@69 96 hb_shape_plan_execute (hb_shape_plan_t *shape_plan,
jpayne@69 97 hb_font_t *font,
jpayne@69 98 hb_buffer_t *buffer,
jpayne@69 99 const hb_feature_t *features,
jpayne@69 100 unsigned int num_features);
jpayne@69 101
jpayne@69 102 HB_EXTERN const char *
jpayne@69 103 hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan);
jpayne@69 104
jpayne@69 105
jpayne@69 106 HB_END_DECLS
jpayne@69 107
jpayne@69 108 #endif /* HB_SHAPE_PLAN_H */