/* * Copyright © 2022 Behdad Esfahbod * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above copyright notice and the following two paragraphs appear in * all copies of this software. * * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. * * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #ifndef HB_FT_COLR_HH #define HB_FT_COLR_HH #include "hb.hh" #include "hb-paint-extents.hh" #include FT_COLOR_H static hb_paint_composite_mode_t _hb_ft_paint_composite_mode (FT_Composite_Mode mode) { … } hb_ft_paint_context_t; static void _hb_ft_paint (hb_ft_paint_context_t *c, FT_OpaquePaint opaque_paint); struct hb_ft_paint_context_t { … }; static unsigned _hb_ft_color_line_get_color_stops (hb_color_line_t *color_line, void *color_line_data, unsigned int start, unsigned int *count, hb_color_stop_t *color_stops, void *user_data) { … } static hb_paint_extend_t _hb_ft_color_line_get_extend (hb_color_line_t *color_line, void *color_line_data, void *user_data) { … } void _hb_ft_paint (hb_ft_paint_context_t *c, FT_OpaquePaint opaque_paint) { … } static bool hb_ft_paint_glyph_colr (hb_font_t *font, void *font_data, hb_codepoint_t gid, hb_paint_funcs_t *paint_funcs, void *paint_data, unsigned int palette_index, hb_color_t foreground, void *user_data) { … } #endif /* HB_FT_COLR_HH */