color_get_name_id


Description:

public static OtNameId color_get_name_id (Face face, uint color_index)

Fetches the `name` table Name ID that provides display names for the specified color in a face's `CPAL` color palette.

Display names can be generic (e.g., "Background") or specific (e.g., "Eye color").

Parameters:

face

Face to work upon

color_index

The index of the color

Returns:

the Name ID found for the color.