gfx/harfbuzz/src/hb-shape-plan.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/harfbuzz/src/hb-shape-plan.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,89 @@
     1.4 +/*
     1.5 + * Copyright © 2012  Google, 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 + * Google 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_SHAPE_PLAN_H
    1.35 +#define HB_SHAPE_PLAN_H
    1.36 +
    1.37 +#include "hb-common.h"
    1.38 +#include "hb-font.h"
    1.39 +
    1.40 +HB_BEGIN_DECLS
    1.41 +
    1.42 +typedef struct hb_shape_plan_t hb_shape_plan_t;
    1.43 +
    1.44 +hb_shape_plan_t *
    1.45 +hb_shape_plan_create (hb_face_t                     *face,
    1.46 +		      const hb_segment_properties_t *props,
    1.47 +		      const hb_feature_t            *user_features,
    1.48 +		      unsigned int                   num_user_features,
    1.49 +		      const char * const            *shaper_list);
    1.50 +
    1.51 +hb_shape_plan_t *
    1.52 +hb_shape_plan_create_cached (hb_face_t                     *face,
    1.53 +			     const hb_segment_properties_t *props,
    1.54 +			     const hb_feature_t            *user_features,
    1.55 +			     unsigned int                   num_user_features,
    1.56 +			     const char * const            *shaper_list);
    1.57 +
    1.58 +hb_shape_plan_t *
    1.59 +hb_shape_plan_get_empty (void);
    1.60 +
    1.61 +hb_shape_plan_t *
    1.62 +hb_shape_plan_reference (hb_shape_plan_t *shape_plan);
    1.63 +
    1.64 +void
    1.65 +hb_shape_plan_destroy (hb_shape_plan_t *shape_plan);
    1.66 +
    1.67 +hb_bool_t
    1.68 +hb_shape_plan_set_user_data (hb_shape_plan_t    *shape_plan,
    1.69 +			     hb_user_data_key_t *key,
    1.70 +			     void *              data,
    1.71 +			     hb_destroy_func_t   destroy,
    1.72 +			     hb_bool_t           replace);
    1.73 +
    1.74 +void *
    1.75 +hb_shape_plan_get_user_data (hb_shape_plan_t    *shape_plan,
    1.76 +			     hb_user_data_key_t *key);
    1.77 +
    1.78 +
    1.79 +hb_bool_t
    1.80 +hb_shape_plan_execute (hb_shape_plan_t    *shape_plan,
    1.81 +		       hb_font_t          *font,
    1.82 +		       hb_buffer_t        *buffer,
    1.83 +		       const hb_feature_t *features,
    1.84 +		       unsigned int        num_features);
    1.85 +
    1.86 +const char *
    1.87 +hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan);
    1.88 +
    1.89 +
    1.90 +HB_END_DECLS
    1.91 +
    1.92 +#endif /* HB_SHAPE_PLAN_H */

mercurial