1 /****************************************************************************
5 * TrueType and OpenType colored glyph layer support (specification).
7 * Copyright (C) 2018-2023 by
8 * David Turner, Robert Wilhelm, and Werner Lemberg.
10 * Originally written by Shao Yu Zhang <shaozhang@fb.com>.
12 * This file is part of the FreeType project, and may only be used,
13 * modified, and distributed under the terms of the FreeType project
14 * license, LICENSE.TXT. By continuing to use, modify, or distribute
15 * this file you indicate that you have read the license and
16 * understand and accept it fully.
32 tt_face_load_colr( TT_Face face,
36 tt_face_free_colr( TT_Face face );
39 tt_face_get_colr_layer( TT_Face face,
41 FT_UInt *aglyph_index,
42 FT_UInt *acolor_index,
43 FT_LayerIterator* iterator );
46 tt_face_get_colr_glyph_paint( TT_Face face,
48 FT_Color_Root_Transform root_transform,
49 FT_OpaquePaint* paint );
52 tt_face_get_color_glyph_clipbox( TT_Face face,
54 FT_ClipBox* clip_box );
57 tt_face_get_paint_layers( TT_Face face,
58 FT_LayerIterator* iterator,
59 FT_OpaquePaint* paint );
62 tt_face_get_colorline_stops( TT_Face face,
63 FT_ColorStop* color_stop,
64 FT_ColorStopIterator* iterator );
67 tt_face_get_paint( TT_Face face,
68 FT_OpaquePaint opaque_paint,
69 FT_COLR_Paint* paint );
72 tt_face_colr_blend_layer( TT_Face face,
75 FT_GlyphSlot srcSlot );
81 #endif /* __TTCOLR_H__ */