{"action":"created","comment":{"url":"https://api.github.com/repos/behdad/harfbuzz/pulls/comments/67526347","id":67526347,"diff_hunk":"@@ -0,0 +1,156 @@\n+/*\n+ * Copyright © 2016  Google, Inc.\n+ *\n+ *  This is part of HarfBuzz, a text shaping library.\n+ *\n+ * Permission is hereby granted, without written agreement and without\n+ * license or royalty fees, to use, copy, modify, and distribute this\n+ * software and its documentation for any purpose, provided that the\n+ * above copyright notice and the following two paragraphs appear in\n+ * all copies of this software.\n+ *\n+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR\n+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES\n+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN\n+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\n+ * DAMAGE.\n+ *\n+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,\n+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS\n+ * ON AN \"AS IS\" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO\n+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.\n+ *\n+ * Google Author(s): Sascha Brawer\n+ */\n+\n+#ifndef HB_OT_H_IN\n+#error \"Include <hb-ot.h> instead.\"\n+#endif\n+\n+#ifndef HB_OT_COLOR_H\n+#define HB_OT_COLOR_H\n+\n+#include \"hb.h\"\n+\n+#include \"hb-ot-tag.h\"\n+\n+HB_BEGIN_DECLS\n+\n+/**\n+ * HB_OT_TAG_CPAL:\n+ * a four-letter tag for identifying the CPAL table with color palettes\n+ *\n+ * Since: 1.2.8\n+ */\n+#define HB_OT_TAG_CPAL HB_TAG('C','P','A','L')\n+\n+\n+/**\n+ * hb_ot_color_t:\n+ * @red: the intensity of the red channel\n+ * @green: the intensity of the green channel\n+ * @blue: the intensity of the blue channel\n+ * @alpha: the transparency\n+ *\n+ * Structure for holding color values.\n+ *\n+ * Since: 1.2.8\n+ */\n+typedef struct\n+{\n+  uint8_t red, green, blue, alpha;\n+} hb_ot_color_t;\n+\n+\n+/**\n+ * hb_ot_color_palette_flags_t:\n+ * @HB_OT_COLOR_PALETTE_FLAG_DEFAULT: default indicating that there is nothing special to note about a color palette.\n+ * @HB_OT_COLOR_PALETTE_FLAG_FOR_LIGHT_BACKGROUND: flag indicating that the color palette is suitable for rendering text on light background.\n+ * @HB_OT_COLOR_PALETTE_FLAG_FOR_DARK_BACKGROUND: flag indicating that the color palette is suitable for rendering text on dark background.\n+ *\n+ * Since: 1.2.8\n+ */\n+typedef enum { /*< flags >*/\n+  HB_OT_COLOR_PALETTE_FLAG_DEFAULT = 0x00000000u,\n+  HB_OT_COLOR_PALETTE_FLAG_FOR_LIGHT_BACKGROUND = 0x00000001u,\n+  HB_OT_COLOR_PALETTE_FLAG_FOR_DARK_BACKGROUND = 0x00000002u,\n+} hb_ot_color_palette_flags_t;\n+\n+\n+/**\n+ * hb_ot_color_get_palette_count:\n+ * @face: a font face\n+ *\n+ * Returns: the number of color palettes in @face, or zero if @face has\n+ * no color\n+ *\n+ * Since: 1.2.8\n+ */\n+HB_EXTERN unsigned int\n+hb_ot_color_get_palette_count (hb_face_t *face);\n+\n+\n+/**\n+ * hb_ot_color_get_palette_name:\n+ * @face: a font face\n+ * @palette: the index of the color palette whose name is being requested\n+ *\n+ * Retrieves the name of a color palette. For example, a color font can\n+ * have themed palettes like \"Spring\", \"Summer\", \"Fall\", and \"Winter\".\n+ *\n+ * Returns: an identifier within @face's `name` table.\n+ * If the requested palette has no name, or if @face has no color,\n+ * or if @palette is not between 0 and hb_ot_color_get_palette_count(),\n+ * the result is zero.\n+ *\n+ * Since: 1.2.8\n+ */\n+HB_EXTERN unsigned int\n+hb_ot_color_get_palette_name (hb_face_t *face, unsigned int palette);\n+\n+\n+/**\n+ * hb_ot_color_get_palette_flags:\n+ * @face: a font face\n+ * @palette: the index of the color palette whose flags are being requested\n+ *\n+ * Returns: the flags for the requested color palette.  If @face has no color,\n+ * or if @palette is not between 0 and hb_ot_color_get_palette_count(),\n+ * the result is #HB_OT_COLOR_PALETTE_FLAG_DEFAULT.\n+ *\n+ * Since: 1.2.8\n+ */\n+HB_EXTERN hb_ot_color_palette_flags_t\n+hb_ot_color_get_palette_flags (hb_face_t *face, unsigned int palette);\n+\n+\n+/**\n+ * hb_ot_color_get_palette_colors:\n+ * @face: a font face\n+ * @palette: the index of the color palette whose colors are being requested\n+ * @start_offset: the index of the first color being requested.\n+ * @color_count: how many colors can be maximally stored into the @colors array\n+ * @colors: an array of #hb_ot_color_t records. After calling this function,","path":"src/hb-ot-color.h","position":134,"original_position":134,"commit_id":"1857fc4ed6d1442b82d871eff272f0ca84b869fc","original_commit_id":"1857fc4ed6d1442b82d871eff272f0ca84b869fc","user":{"login":"khaledhosny","id":93914,"avatar_url":"https://avatars.githubusercontent.com/u/93914?v=3","gravatar_id":"","url":"https://api.github.com/users/khaledhosny","html_url":"https://github.com/khaledhosny","followers_url":"https://api.github.com/users/khaledhosny/followers","following_url":"https://api.github.com/users/khaledhosny/following{/other_user}","gists_url":"https://api.github.com/users/khaledhosny/gists{/gist_id}","starred_url":"https://api.github.com/users/khaledhosny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khaledhosny/subscriptions","organizations_url":"https://api.github.com/users/khaledhosny/orgs","repos_url":"https://api.github.com/users/khaledhosny/repos","events_url":"https://api.github.com/users/khaledhosny/events{/privacy}","received_events_url":"https://api.github.com/users/khaledhosny/received_events","type":"User","site_admin":false},"body":"And `(out)` here.","created_at":"2016-06-17T15:14:37Z","updated_at":"2016-06-17T15:14:37Z","html_url":"https://github.com/behdad/harfbuzz/pull/244#discussion_r67526347","pull_request_url":"https://api.github.com/repos/behdad/harfbuzz/pulls/244","_links":{"self":{"href":"https://api.github.com/repos/behdad/harfbuzz/pulls/comments/67526347"},"html":{"href":"https://github.com/behdad/harfbuzz/pull/244#discussion_r67526347"},"pull_request":{"href":"https://api.github.com/repos/behdad/harfbuzz/pulls/244"}}},"pull_request":{"url":"https://api.github.com/repos/behdad/harfbuzz/pulls/244","id":67748563,"html_url":"https://github.com/behdad/harfbuzz/pull/244","diff_url":"https://github.com/behdad/harfbuzz/pull/244.diff","patch_url":"https://github.com/behdad/harfbuzz/pull/244.patch","issue_url":"https://api.github.com/repos/behdad/harfbuzz/issues/244","number":244,"state":"open","locked":false,"title":"Support CPAL table","user":{"login":"brawer","id":1527880,"avatar_url":"https://avatars.githubusercontent.com/u/1527880?v=3","gravatar_id":"","url":"https://api.github.com/users/brawer","html_url":"https://github.com/brawer","followers_url":"https://api.github.com/users/brawer/followers","following_url":"https://api.github.com/users/brawer/following{/other_user}","gists_url":"https://api.github.com/users/brawer/gists{/gist_id}","starred_url":"https://api.github.com/users/brawer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brawer/subscriptions","organizations_url":"https://api.github.com/users/brawer/orgs","repos_url":"https://api.github.com/users/brawer/repos","events_url":"https://api.github.com/users/brawer/events{/privacy}","received_events_url":"https://api.github.com/users/brawer/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-25T16:25:19Z","updated_at":"2016-06-17T15:14:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7910eca60e2b6d3f79ca73f43ce00fe5b31d6f9d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/behdad/harfbuzz/pulls/244/commits","review_comments_url":"https://api.github.com/repos/behdad/harfbuzz/pulls/244/comments","review_comment_url":"https://api.github.com/repos/behdad/harfbuzz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/behdad/harfbuzz/issues/244/comments","statuses_url":"https://api.github.com/repos/behdad/harfbuzz/statuses/1857fc4ed6d1442b82d871eff272f0ca84b869fc","head":{"label":"brawer:color","ref":"color","sha":"1857fc4ed6d1442b82d871eff272f0ca84b869fc","user":{"login":"brawer","id":1527880,"avatar_url":"https://avatars.githubusercontent.com/u/1527880?v=3","gravatar_id":"","url":"https://api.github.com/users/brawer","html_url":"https://github.com/brawer","followers_url":"https://api.github.com/users/brawer/followers","following_url":"https://api.github.com/users/brawer/following{/other_user}","gists_url":"https://api.github.com/users/brawer/gists{/gist_id}","starred_url":"https://api.github.com/users/brawer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brawer/subscriptions","organizations_url":"https://api.github.com/users/brawer/orgs","repos_url":"https://api.github.com/users/brawer/repos","events_url":"https://api.github.com/users/brawer/events{/privacy}","received_events_url":"https://api.github.com/users/brawer/received_events","type":"User","site_admin":false},"repo":{"id":36651373,"name":"harfbuzz","full_name":"brawer/harfbuzz","owner":{"login":"brawer","id":1527880,"avatar_url":"https://avatars.githubusercontent.com/u/1527880?v=3","gravatar_id":"","url":"https://api.github.com/users/brawer","html_url":"https://github.com/brawer","followers_url":"https://api.github.com/users/brawer/followers","following_url":"https://api.github.com/users/brawer/following{/other_user}","gists_url":"https://api.github.com/users/brawer/gists{/gist_id}","starred_url":"https://api.github.com/users/brawer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brawer/subscriptions","organizations_url":"https://api.github.com/users/brawer/orgs","repos_url":"https://api.github.com/users/brawer/repos","events_url":"https://api.github.com/users/brawer/events{/privacy}","received_events_url":"https://api.github.com/users/brawer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brawer/harfbuzz","description":"HarfBuzz OpenType text shaping engine","fork":true,"url":"https://api.github.com/repos/brawer/harfbuzz","forks_url":"https://api.github.com/repos/brawer/harfbuzz/forks","keys_url":"https://api.github.com/repos/brawer/harfbuzz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brawer/harfbuzz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brawer/harfbuzz/teams","hooks_url":"https://api.github.com/repos/brawer/harfbuzz/hooks","issue_events_url":"https://api.github.com/repos/brawer/harfbuzz/issues/events{/number}","events_url":"https://api.github.com/repos/brawer/harfbuzz/events","assignees_url":"https://api.github.com/repos/brawer/harfbuzz/assignees{/user}","branches_url":"https://api.github.com/repos/brawer/harfbuzz/branches{/branch}","tags_url":"https://api.github.com/repos/brawer/harfbuzz/tags","blobs_url":"https://api.github.com/repos/brawer/harfbuzz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brawer/harfbuzz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brawer/harfbuzz/git/refs{/sha}","trees_url":"https://api.github.com/repos/brawer/harfbuzz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brawer/harfbuzz/statuses/{sha}","languages_url":"https://api.github.com/repos/brawer/harfbuzz/languages","stargazers_url":"https://api.github.com/repos/brawer/harfbuzz/stargazers","contributors_url":"https://api.github.com/repos/brawer/harfbuzz/contributors","subscribers_url":"https://api.github.com/repos/brawer/harfbuzz/subscribers","subscription_url":"https://api.github.com/repos/brawer/harfbuzz/subscription","commits_url":"https://api.github.com/repos/brawer/harfbuzz/commits{/sha}","git_commits_url":"https://api.github.com/repos/brawer/harfbuzz/git/commits{/sha}","comments_url":"https://api.github.com/repos/brawer/harfbuzz/comments{/number}","issue_comment_url":"https://api.github.com/repos/brawer/harfbuzz/issues/comments{/number}","contents_url":"https://api.github.com/repos/brawer/harfbuzz/contents/{+path}","compare_url":"https://api.github.com/repos/brawer/harfbuzz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brawer/harfbuzz/merges","archive_url":"https://api.github.com/repos/brawer/harfbuzz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brawer/harfbuzz/downloads","issues_url":"https://api.github.com/repos/brawer/harfbuzz/issues{/number}","pulls_url":"https://api.github.com/repos/brawer/harfbuzz/pulls{/number}","milestones_url":"https://api.github.com/repos/brawer/harfbuzz/milestones{/number}","notifications_url":"https://api.github.com/repos/brawer/harfbuzz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brawer/harfbuzz/labels{/name}","releases_url":"https://api.github.com/repos/brawer/harfbuzz/releases{/id}","deployments_url":"https://api.github.com/repos/brawer/harfbuzz/deployments","created_at":"2015-06-01T09:40:06Z","updated_at":"2015-06-01T09:40:08Z","pushed_at":"2016-06-17T14:55:13Z","git_url":"git://github.com/brawer/harfbuzz.git","ssh_url":"git@github.com:brawer/harfbuzz.git","clone_url":"https://github.com/brawer/harfbuzz.git","svn_url":"https://github.com/brawer/harfbuzz","homepage":"http://harfbuzz.org/","size":9000,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"behdad:master","ref":"master","sha":"4b8de1ea804b225e8357422d0686aad76b05ccf3","user":{"login":"behdad","id":142891,"avatar_url":"https://avatars.githubusercontent.com/u/142891?v=3","gravatar_id":"","url":"https://api.github.com/users/behdad","html_url":"https://github.com/behdad","followers_url":"https://api.github.com/users/behdad/followers","following_url":"https://api.github.com/users/behdad/following{/other_user}","gists_url":"https://api.github.com/users/behdad/gists{/gist_id}","starred_url":"https://api.github.com/users/behdad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behdad/subscriptions","organizations_url":"https://api.github.com/users/behdad/orgs","repos_url":"https://api.github.com/users/behdad/repos","events_url":"https://api.github.com/users/behdad/events{/privacy}","received_events_url":"https://api.github.com/users/behdad/received_events","type":"User","site_admin":false},"repo":{"id":5050525,"name":"harfbuzz","full_name":"behdad/harfbuzz","owner":{"login":"behdad","id":142891,"avatar_url":"https://avatars.githubusercontent.com/u/142891?v=3","gravatar_id":"","url":"https://api.github.com/users/behdad","html_url":"https://github.com/behdad","followers_url":"https://api.github.com/users/behdad/followers","following_url":"https://api.github.com/users/behdad/following{/other_user}","gists_url":"https://api.github.com/users/behdad/gists{/gist_id}","starred_url":"https://api.github.com/users/behdad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behdad/subscriptions","organizations_url":"https://api.github.com/users/behdad/orgs","repos_url":"https://api.github.com/users/behdad/repos","events_url":"https://api.github.com/users/behdad/events{/privacy}","received_events_url":"https://api.github.com/users/behdad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/behdad/harfbuzz","description":"HarfBuzz OpenType text shaping engine","fork":false,"url":"https://api.github.com/repos/behdad/harfbuzz","forks_url":"https://api.github.com/repos/behdad/harfbuzz/forks","keys_url":"https://api.github.com/repos/behdad/harfbuzz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/behdad/harfbuzz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/behdad/harfbuzz/teams","hooks_url":"https://api.github.com/repos/behdad/harfbuzz/hooks","issue_events_url":"https://api.github.com/repos/behdad/harfbuzz/issues/events{/number}","events_url":"https://api.github.com/repos/behdad/harfbuzz/events","assignees_url":"https://api.github.com/repos/behdad/harfbuzz/assignees{/user}","branches_url":"https://api.github.com/repos/behdad/harfbuzz/branches{/branch}","tags_url":"https://api.github.com/repos/behdad/harfbuzz/tags","blobs_url":"https://api.github.com/repos/behdad/harfbuzz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/behdad/harfbuzz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/behdad/harfbuzz/git/refs{/sha}","trees_url":"https://api.github.com/repos/behdad/harfbuzz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/behdad/harfbuzz/statuses/{sha}","languages_url":"https://api.github.com/repos/behdad/harfbuzz/languages","stargazers_url":"https://api.github.com/repos/behdad/harfbuzz/stargazers","contributors_url":"https://api.github.com/repos/behdad/harfbuzz/contributors","subscribers_url":"https://api.github.com/repos/behdad/harfbuzz/subscribers","subscription_url":"https://api.github.com/repos/behdad/harfbuzz/subscription","commits_url":"https://api.github.com/repos/behdad/harfbuzz/commits{/sha}","git_commits_url":"https://api.github.com/repos/behdad/harfbuzz/git/commits{/sha}","comments_url":"https://api.github.com/repos/behdad/harfbuzz/comments{/number}","issue_comment_url":"https://api.github.com/repos/behdad/harfbuzz/issues/comments{/number}","contents_url":"https://api.github.com/repos/behdad/harfbuzz/contents/{+path}","compare_url":"https://api.github.com/repos/behdad/harfbuzz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/behdad/harfbuzz/merges","archive_url":"https://api.github.com/repos/behdad/harfbuzz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/behdad/harfbuzz/downloads","issues_url":"https://api.github.com/repos/behdad/harfbuzz/issues{/number}","pulls_url":"https://api.github.com/repos/behdad/harfbuzz/pulls{/number}","milestones_url":"https://api.github.com/repos/behdad/harfbuzz/milestones{/number}","notifications_url":"https://api.github.com/repos/behdad/harfbuzz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/behdad/harfbuzz/labels{/name}","releases_url":"https://api.github.com/repos/behdad/harfbuzz/releases{/id}","deployments_url":"https://api.github.com/repos/behdad/harfbuzz/deployments","created_at":"2012-07-14T19:50:26Z","updated_at":"2016-06-17T08:15:07Z","pushed_at":"2016-06-17T14:55:14Z","git_url":"git://github.com/behdad/harfbuzz.git","ssh_url":"git@github.com:behdad/harfbuzz.git","clone_url":"https://github.com/behdad/harfbuzz.git","svn_url":"https://github.com/behdad/harfbuzz","homepage":"http://harfbuzz.org/","size":12675,"stargazers_count":312,"watchers_count":312,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":116,"mirror_url":null,"open_issues_count":60,"forks":116,"open_issues":60,"watchers":312,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/behdad/harfbuzz/pulls/244"},"html":{"href":"https://github.com/behdad/harfbuzz/pull/244"},"issue":{"href":"https://api.github.com/repos/behdad/harfbuzz/issues/244"},"comments":{"href":"https://api.github.com/repos/behdad/harfbuzz/issues/244/comments"},"review_comments":{"href":"https://api.github.com/repos/behdad/harfbuzz/pulls/244/comments"},"review_comment":{"href":"https://api.github.com/repos/behdad/harfbuzz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/behdad/harfbuzz/pulls/244/commits"},"statuses":{"href":"https://api.github.com/repos/behdad/harfbuzz/statuses/1857fc4ed6d1442b82d871eff272f0ca84b869fc"}}}}
{"actor":{"display_login":"khaledhosny"}}