2016-04-25 18:20:57 +02:00
|
|
|
|
/*
|
|
|
|
|
* Copyright © 2016 Google, Inc.
|
2018-02-27 20:26:17 +01:00
|
|
|
|
* Copyright © 2018 Ebrahim Byagowi
|
2016-04-25 18:20:57 +02:00
|
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
*
|
|
|
|
|
* Google Author(s): Sascha Brawer
|
|
|
|
|
*/
|
|
|
|
|
|
2018-03-03 20:13:23 +01:00
|
|
|
|
#ifndef HB_OT_COLOR_CPAL_TABLE_HH
|
|
|
|
|
#define HB_OT_COLOR_CPAL_TABLE_HH
|
2016-04-25 18:20:57 +02:00
|
|
|
|
|
2018-08-26 07:36:36 +02:00
|
|
|
|
#include "hb-open-type.hh"
|
2018-05-01 17:16:46 +02:00
|
|
|
|
#include "hb-ot-color.h"
|
2018-10-21 06:56:40 +02:00
|
|
|
|
#include "hb-ot-name.h"
|
2016-04-25 18:20:57 +02:00
|
|
|
|
|
2018-03-07 15:51:42 +01:00
|
|
|
|
|
|
|
|
|
/*
|
2018-10-21 06:56:40 +02:00
|
|
|
|
* CPAL -- Color Palette
|
|
|
|
|
* https://docs.microsoft.com/en-us/typography/opentype/spec/cpal
|
2018-03-07 15:51:42 +01:00
|
|
|
|
*/
|
2018-10-21 06:56:40 +02:00
|
|
|
|
#define HB_OT_TAG_CPAL HB_TAG('C','P','A','L')
|
2018-03-07 15:51:42 +01:00
|
|
|
|
|
2018-02-28 10:49:40 +01:00
|
|
|
|
namespace OT {
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 18:20:57 +02:00
|
|
|
|
struct CPALV1Tail
|
|
|
|
|
{
|
2018-02-27 20:26:17 +01:00
|
|
|
|
friend struct CPAL;
|
|
|
|
|
|
|
|
|
|
private:
|
2018-12-16 20:08:10 +01:00
|
|
|
|
hb_ot_color_palette_flags_t get_palette_flags (const void *base,
|
|
|
|
|
unsigned int palette_index,
|
|
|
|
|
unsigned int palette_count) const
|
2018-02-27 20:26:17 +01:00
|
|
|
|
{
|
2018-10-23 01:16:21 +02:00
|
|
|
|
if (!paletteFlagsZ) return HB_OT_COLOR_PALETTE_FLAG_DEFAULT;
|
|
|
|
|
return (hb_ot_color_palette_flags_t) (uint32_t)
|
2018-11-02 16:46:24 +01:00
|
|
|
|
(base+paletteFlagsZ).as_array (palette_count)[palette_index];
|
2018-02-27 20:26:17 +01:00
|
|
|
|
}
|
|
|
|
|
|
2018-12-16 20:08:10 +01:00
|
|
|
|
hb_ot_name_id_t get_palette_name_id (const void *base,
|
|
|
|
|
unsigned int palette_index,
|
|
|
|
|
unsigned int palette_count) const
|
2018-02-27 20:26:17 +01:00
|
|
|
|
{
|
2018-10-30 22:04:09 +01:00
|
|
|
|
if (!paletteLabelsZ) return HB_OT_NAME_ID_INVALID;
|
2018-11-02 16:46:24 +01:00
|
|
|
|
return (base+paletteLabelsZ).as_array (palette_count)[palette_index];
|
2016-04-25 18:20:57 +02:00
|
|
|
|
}
|
2018-02-27 20:26:17 +01:00
|
|
|
|
|
2018-12-16 20:08:10 +01:00
|
|
|
|
hb_ot_name_id_t get_color_name_id (const void *base,
|
|
|
|
|
unsigned int color_index,
|
|
|
|
|
unsigned int color_count) const
|
2018-10-21 08:14:16 +02:00
|
|
|
|
{
|
2018-10-30 22:04:09 +01:00
|
|
|
|
if (!colorLabelsZ) return HB_OT_NAME_ID_INVALID;
|
2018-11-02 16:46:24 +01:00
|
|
|
|
return (base+colorLabelsZ).as_array (color_count)[color_index];
|
2018-10-22 23:51:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public:
|
2021-05-11 20:44:32 +02:00
|
|
|
|
bool serialize (hb_serialize_context_t *c,
|
|
|
|
|
unsigned palette_count,
|
|
|
|
|
unsigned color_count,
|
|
|
|
|
const void *base,
|
|
|
|
|
const hb_map_t *color_index_map) const
|
|
|
|
|
{
|
|
|
|
|
TRACE_SERIALIZE (this);
|
|
|
|
|
auto *out = c->allocate_size<CPALV1Tail> (static_size);
|
|
|
|
|
if (unlikely (!out)) return_trace (false);
|
|
|
|
|
|
2021-08-18 23:20:14 +02:00
|
|
|
|
out->paletteFlagsZ = 0;
|
|
|
|
|
if (paletteFlagsZ)
|
|
|
|
|
out->paletteFlagsZ.serialize_copy (c, paletteFlagsZ, base, 0, hb_serialize_context_t::Head, palette_count);
|
|
|
|
|
|
|
|
|
|
out->paletteLabelsZ = 0;
|
|
|
|
|
if (paletteLabelsZ)
|
|
|
|
|
out->paletteLabelsZ.serialize_copy (c, paletteLabelsZ, base, 0, hb_serialize_context_t::Head, palette_count);
|
2021-05-11 20:44:32 +02:00
|
|
|
|
|
2021-07-07 20:27:49 +02:00
|
|
|
|
const hb_array_t<const NameID> colorLabels = (base+colorLabelsZ).as_array (color_count);
|
|
|
|
|
if (colorLabelsZ)
|
2021-05-11 20:44:32 +02:00
|
|
|
|
{
|
2021-07-07 20:27:49 +02:00
|
|
|
|
c->push ();
|
|
|
|
|
for (const auto _ : colorLabels)
|
2021-05-11 20:44:32 +02:00
|
|
|
|
{
|
2022-06-03 02:04:12 +02:00
|
|
|
|
const hb_codepoint_t *v;
|
2022-05-28 21:40:30 +02:00
|
|
|
|
if (!color_index_map->has (_, &v)) continue;
|
2021-07-07 20:27:49 +02:00
|
|
|
|
NameID new_color_idx;
|
2022-06-03 02:04:12 +02:00
|
|
|
|
new_color_idx = *v;
|
2021-07-07 20:27:49 +02:00
|
|
|
|
if (!c->copy<NameID> (new_color_idx))
|
|
|
|
|
{
|
|
|
|
|
c->pop_discard ();
|
|
|
|
|
return_trace (false);
|
|
|
|
|
}
|
2021-05-11 20:44:32 +02:00
|
|
|
|
}
|
2021-07-07 20:27:49 +02:00
|
|
|
|
c->add_link (out->colorLabelsZ, c->pop_pack ());
|
2021-05-11 20:44:32 +02:00
|
|
|
|
}
|
|
|
|
|
return_trace (true);
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-16 20:08:10 +01:00
|
|
|
|
bool sanitize (hb_sanitize_context_t *c,
|
|
|
|
|
const void *base,
|
|
|
|
|
unsigned int palette_count,
|
|
|
|
|
unsigned int color_count) const
|
2018-10-22 23:51:40 +02:00
|
|
|
|
{
|
|
|
|
|
TRACE_SANITIZE (this);
|
|
|
|
|
return_trace (c->check_struct (this) &&
|
2018-10-23 01:16:21 +02:00
|
|
|
|
(!paletteFlagsZ || (base+paletteFlagsZ).sanitize (c, palette_count)) &&
|
|
|
|
|
(!paletteLabelsZ || (base+paletteLabelsZ).sanitize (c, palette_count)) &&
|
|
|
|
|
(!colorLabelsZ || (base+colorLabelsZ).sanitize (c, color_count)));
|
2018-10-21 08:14:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
2018-02-27 20:26:17 +01:00
|
|
|
|
protected:
|
2021-08-19 00:50:49 +02:00
|
|
|
|
// TODO(garretrieger): these offsets can hold nulls so we should not be using non-null offsets
|
|
|
|
|
// here. Currently they are needed since UnsizedArrayOf doesn't define null_size
|
2021-03-31 20:49:14 +02:00
|
|
|
|
NNOffset32To<UnsizedArrayOf<HBUINT32>>
|
2018-04-09 22:23:50 +02:00
|
|
|
|
paletteFlagsZ; /* Offset from the beginning of CPAL table to
|
|
|
|
|
* the Palette Type Array. Set to 0 if no array
|
|
|
|
|
* is provided. */
|
2021-03-31 20:49:14 +02:00
|
|
|
|
NNOffset32To<UnsizedArrayOf<NameID>>
|
2018-10-23 01:16:21 +02:00
|
|
|
|
paletteLabelsZ; /* Offset from the beginning of CPAL table to
|
|
|
|
|
* the palette labels array. Set to 0 if no
|
2018-04-09 22:23:50 +02:00
|
|
|
|
* array is provided. */
|
2021-03-31 20:49:14 +02:00
|
|
|
|
NNOffset32To<UnsizedArrayOf<NameID>>
|
2018-10-23 01:16:21 +02:00
|
|
|
|
colorLabelsZ; /* Offset from the beginning of CPAL table to
|
|
|
|
|
* the color labels array. Set to 0
|
2018-04-09 22:23:50 +02:00
|
|
|
|
* if no array is provided. */
|
2016-04-25 18:20:57 +02:00
|
|
|
|
public:
|
2018-10-21 08:14:16 +02:00
|
|
|
|
DEFINE_SIZE_STATIC (12);
|
2016-04-25 18:20:57 +02:00
|
|
|
|
};
|
|
|
|
|
|
2018-03-06 14:11:08 +01:00
|
|
|
|
typedef HBUINT32 BGRAColor;
|
|
|
|
|
|
2016-04-25 18:20:57 +02:00
|
|
|
|
struct CPAL
|
|
|
|
|
{
|
2019-01-22 12:08:57 +01:00
|
|
|
|
static constexpr hb_tag_t tableTag = HB_OT_TAG_CPAL;
|
2016-04-25 18:20:57 +02:00
|
|
|
|
|
2018-12-17 19:01:01 +01:00
|
|
|
|
bool has_data () const { return numPalettes; }
|
2018-10-22 04:23:11 +02:00
|
|
|
|
|
2018-12-17 19:01:01 +01:00
|
|
|
|
unsigned int get_size () const
|
2018-12-01 02:45:40 +01:00
|
|
|
|
{ return min_size + numPalettes * sizeof (colorRecordIndicesZ[0]); }
|
2018-10-22 23:51:40 +02:00
|
|
|
|
|
2018-12-17 19:01:01 +01:00
|
|
|
|
unsigned int get_palette_count () const { return numPalettes; }
|
2019-10-01 12:19:55 +02:00
|
|
|
|
unsigned int get_color_count () const { return numColors; }
|
2016-04-25 18:20:57 +02:00
|
|
|
|
|
2018-12-16 20:08:10 +01:00
|
|
|
|
hb_ot_color_palette_flags_t get_palette_flags (unsigned int palette_index) const
|
2018-10-23 01:30:30 +02:00
|
|
|
|
{ return v1 ().get_palette_flags (this, palette_index, numPalettes); }
|
2018-02-27 20:26:17 +01:00
|
|
|
|
|
2018-12-16 20:08:10 +01:00
|
|
|
|
hb_ot_name_id_t get_palette_name_id (unsigned int palette_index) const
|
2018-10-23 01:30:30 +02:00
|
|
|
|
{ return v1 ().get_palette_name_id (this, palette_index, numPalettes); }
|
2018-02-27 20:26:17 +01:00
|
|
|
|
|
2018-12-16 20:08:10 +01:00
|
|
|
|
hb_ot_name_id_t get_color_name_id (unsigned int color_index) const
|
2018-10-23 01:30:30 +02:00
|
|
|
|
{ return v1 ().get_color_name_id (this, color_index, numColors); }
|
2018-02-27 20:26:17 +01:00
|
|
|
|
|
2018-12-16 20:08:10 +01:00
|
|
|
|
unsigned int get_palette_colors (unsigned int palette_index,
|
|
|
|
|
unsigned int start_offset,
|
|
|
|
|
unsigned int *color_count, /* IN/OUT. May be NULL. */
|
|
|
|
|
hb_color_t *colors /* OUT. May be NULL. */) const
|
2018-03-03 19:30:29 +01:00
|
|
|
|
{
|
2018-10-23 01:55:12 +02:00
|
|
|
|
if (unlikely (palette_index >= numPalettes))
|
|
|
|
|
{
|
|
|
|
|
if (color_count) *color_count = 0;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
unsigned int start_index = colorRecordIndicesZ[palette_index];
|
|
|
|
|
hb_array_t<const BGRAColor> all_colors ((this+colorRecordsZ).arrayZ, numColorRecords);
|
|
|
|
|
hb_array_t<const BGRAColor> palette_colors = all_colors.sub_array (start_index,
|
|
|
|
|
numColors);
|
|
|
|
|
if (color_count)
|
|
|
|
|
{
|
2020-06-20 09:37:42 +02:00
|
|
|
|
+ palette_colors.sub_array (start_offset, color_count)
|
|
|
|
|
| hb_sink (hb_array (colors, *color_count))
|
|
|
|
|
;
|
2018-10-23 01:55:12 +02:00
|
|
|
|
}
|
|
|
|
|
return numColors;
|
2018-03-03 19:30:29 +01:00
|
|
|
|
}
|
|
|
|
|
|
2018-10-23 01:30:30 +02:00
|
|
|
|
private:
|
2018-12-17 19:01:01 +01:00
|
|
|
|
const CPALV1Tail& v1 () const
|
2018-10-23 01:30:30 +02:00
|
|
|
|
{
|
2020-04-20 11:42:45 +02:00
|
|
|
|
if (version == 0) return Null (CPALV1Tail);
|
2018-10-23 01:30:30 +02:00
|
|
|
|
return StructAfter<CPALV1Tail> (*this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public:
|
2021-05-11 20:44:32 +02:00
|
|
|
|
bool serialize (hb_serialize_context_t *c,
|
|
|
|
|
const hb_array_t<const HBUINT16> &color_record_indices,
|
2022-05-06 01:27:34 +02:00
|
|
|
|
const hb_array_t<const BGRAColor> &color_records,
|
|
|
|
|
const hb_vector_t<unsigned>& first_color_index_for_layer,
|
|
|
|
|
const hb_map_t& first_color_to_layer_index,
|
|
|
|
|
const hb_set_t &retained_color_indices) const
|
2021-05-11 20:44:32 +02:00
|
|
|
|
{
|
|
|
|
|
TRACE_SERIALIZE (this);
|
|
|
|
|
|
2022-05-06 01:27:34 +02:00
|
|
|
|
// TODO(grieger): limit total final size.
|
|
|
|
|
|
2021-05-11 20:44:32 +02:00
|
|
|
|
for (const auto idx : color_record_indices)
|
|
|
|
|
{
|
2022-05-06 01:27:34 +02:00
|
|
|
|
hb_codepoint_t layer_index = first_color_to_layer_index[idx];
|
|
|
|
|
|
2021-05-11 20:44:32 +02:00
|
|
|
|
HBUINT16 new_idx;
|
2022-05-06 01:27:34 +02:00
|
|
|
|
new_idx = layer_index * retained_color_indices.get_population ();
|
2021-05-11 20:44:32 +02:00
|
|
|
|
if (!c->copy<HBUINT16> (new_idx)) return_trace (false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
c->push ();
|
2022-05-06 01:27:34 +02:00
|
|
|
|
for (unsigned first_color_index : first_color_index_for_layer)
|
2021-05-11 20:44:32 +02:00
|
|
|
|
{
|
2022-05-06 01:27:34 +02:00
|
|
|
|
for (hb_codepoint_t color_index : retained_color_indices)
|
2021-05-11 20:44:32 +02:00
|
|
|
|
{
|
2022-05-06 01:27:34 +02:00
|
|
|
|
if (!c->copy<BGRAColor> (color_records[first_color_index + color_index]))
|
|
|
|
|
{
|
|
|
|
|
c->pop_discard ();
|
|
|
|
|
return_trace (false);
|
|
|
|
|
}
|
2021-05-11 20:44:32 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-05-06 01:27:34 +02:00
|
|
|
|
|
2021-05-11 20:44:32 +02:00
|
|
|
|
c->add_link (colorRecordsZ, c->pop_pack ());
|
|
|
|
|
return_trace (true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool subset (hb_subset_context_t *c) const
|
|
|
|
|
{
|
|
|
|
|
TRACE_SUBSET (this);
|
2022-05-06 01:27:34 +02:00
|
|
|
|
if (!numPalettes) return_trace (false);
|
|
|
|
|
|
2021-05-11 20:44:32 +02:00
|
|
|
|
const hb_map_t *color_index_map = c->plan->colr_palettes;
|
|
|
|
|
if (color_index_map->is_empty ()) return_trace (false);
|
|
|
|
|
|
|
|
|
|
hb_set_t retained_color_indices;
|
|
|
|
|
for (const auto _ : color_index_map->keys ())
|
|
|
|
|
{
|
|
|
|
|
if (_ == 0xFFFF) continue;
|
|
|
|
|
retained_color_indices.add (_);
|
|
|
|
|
}
|
|
|
|
|
if (retained_color_indices.is_empty ()) return_trace (false);
|
|
|
|
|
|
|
|
|
|
auto *out = c->serializer->start_embed (*this);
|
|
|
|
|
if (unlikely (!c->serializer->extend_min (out))) return_trace (false);
|
2021-08-18 23:20:14 +02:00
|
|
|
|
|
2022-05-06 01:27:34 +02:00
|
|
|
|
|
2021-05-11 20:44:32 +02:00
|
|
|
|
out->version = version;
|
|
|
|
|
out->numColors = retained_color_indices.get_population ();
|
|
|
|
|
out->numPalettes = numPalettes;
|
|
|
|
|
|
2022-05-06 01:27:34 +02:00
|
|
|
|
hb_vector_t<unsigned> first_color_index_for_layer;
|
|
|
|
|
hb_map_t first_color_to_layer_index;
|
2021-05-11 20:44:32 +02:00
|
|
|
|
|
2022-05-06 01:27:34 +02:00
|
|
|
|
const hb_array_t<const HBUINT16> colorRecordIndices = colorRecordIndicesZ.as_array (numPalettes);
|
2021-05-11 20:44:32 +02:00
|
|
|
|
for (const auto first_color_record_idx : colorRecordIndices)
|
|
|
|
|
{
|
2022-05-06 01:27:34 +02:00
|
|
|
|
if (first_color_to_layer_index.has (first_color_record_idx)) continue;
|
|
|
|
|
|
|
|
|
|
first_color_index_for_layer.push (first_color_record_idx);
|
|
|
|
|
first_color_to_layer_index.set (first_color_record_idx,
|
|
|
|
|
first_color_index_for_layer.length - 1);
|
2021-05-11 20:44:32 +02:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-06 01:27:34 +02:00
|
|
|
|
out->numColorRecords = first_color_index_for_layer.length
|
|
|
|
|
* retained_color_indices.get_population ();
|
|
|
|
|
|
2021-05-11 20:44:32 +02:00
|
|
|
|
const hb_array_t<const BGRAColor> color_records = (this+colorRecordsZ).as_array (numColorRecords);
|
2022-05-06 01:27:34 +02:00
|
|
|
|
if (!out->serialize (c->serializer,
|
|
|
|
|
colorRecordIndices,
|
|
|
|
|
color_records,
|
|
|
|
|
first_color_index_for_layer,
|
|
|
|
|
first_color_to_layer_index,
|
|
|
|
|
retained_color_indices))
|
2021-05-11 20:44:32 +02:00
|
|
|
|
return_trace (false);
|
|
|
|
|
|
|
|
|
|
if (version == 1)
|
|
|
|
|
return_trace (v1 ().serialize (c->serializer, numPalettes, numColors, this, color_index_map));
|
|
|
|
|
|
|
|
|
|
return_trace (true);
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-16 20:08:10 +01:00
|
|
|
|
bool sanitize (hb_sanitize_context_t *c) const
|
2018-10-22 23:51:40 +02:00
|
|
|
|
{
|
|
|
|
|
TRACE_SANITIZE (this);
|
2018-10-23 01:55:12 +02:00
|
|
|
|
return_trace (c->check_struct (this) &&
|
|
|
|
|
(this+colorRecordsZ).sanitize (c, numColorRecords) &&
|
|
|
|
|
colorRecordIndicesZ.sanitize (c, numPalettes) &&
|
|
|
|
|
(version == 0 || v1 ().sanitize (c, this, numPalettes, numColors)));
|
2018-10-22 23:51:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
2018-02-27 20:26:17 +01:00
|
|
|
|
protected:
|
2018-04-09 22:23:50 +02:00
|
|
|
|
HBUINT16 version; /* Table version number */
|
2016-04-25 18:20:57 +02:00
|
|
|
|
/* Version 0 */
|
2018-10-22 23:46:21 +02:00
|
|
|
|
HBUINT16 numColors; /* Number of colors in each palette. */
|
2018-04-09 22:23:50 +02:00
|
|
|
|
HBUINT16 numPalettes; /* Number of palettes in the table. */
|
|
|
|
|
HBUINT16 numColorRecords; /* Total number of color records, combined for
|
|
|
|
|
* all palettes. */
|
2021-03-31 20:49:14 +02:00
|
|
|
|
NNOffset32To<UnsizedArrayOf<BGRAColor>>
|
2018-04-09 22:23:50 +02:00
|
|
|
|
colorRecordsZ; /* Offset from the beginning of CPAL table to
|
|
|
|
|
* the first ColorRecord. */
|
|
|
|
|
UnsizedArrayOf<HBUINT16>
|
|
|
|
|
colorRecordIndicesZ; /* Index of each palette’s first color record in
|
|
|
|
|
* the combined color record array. */
|
|
|
|
|
/*CPALV1Tail v1;*/
|
2016-04-25 18:20:57 +02:00
|
|
|
|
public:
|
2018-04-09 22:23:50 +02:00
|
|
|
|
DEFINE_SIZE_ARRAY (12, colorRecordIndicesZ);
|
2016-04-25 18:20:57 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} /* namespace OT */
|
|
|
|
|
|
|
|
|
|
|
2018-03-03 20:13:23 +01:00
|
|
|
|
#endif /* HB_OT_COLOR_CPAL_TABLE_HH */
|