[colr] Add more docs

State explicitly that palette entries are
unpremultipled, and link to the spec.
pull/3938/head
Matthias Clasen 2 years ago committed by Behdad Esfahbod
parent a02c2a911c
commit a634f6b486
  1. 4
      src/hb-ot-color.cc

@ -167,6 +167,10 @@ hb_ot_color_palette_get_flags (hb_face_t *face,
* for allocating a buffer of suitable size before calling
* hb_ot_color_palette_get_colors() a second time.
*
* The RGBA values in the palette are unpremultiplied. See the
* OpenType spec [CPAL](https://learn.microsoft.com/en-us/typography/opentype/spec/cpal)
* section for details.
*
* Return value: the total number of colors in the palette
*
* Since: 2.1.0

Loading…
Cancel
Save