| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2009,2010 Red Hat, Inc. | 2 * Copyright © 2009,2010 Red Hat, Inc. |
| 3 * Copyright © 2010,2011,2013 Google, Inc. | 3 * Copyright © 2010,2011,2013 Google, Inc. |
| 4 * | 4 * |
| 5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
| 6 * | 6 * |
| 7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
| 8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
| 9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
| 10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 * features not available in either table and not waste precious bits for them
. */ | 82 * features not available in either table and not waste precious bits for them
. */ |
| 83 | 83 |
| 84 hb_tag_t script_tags[3] = {HB_TAG_NONE, HB_TAG_NONE, HB_TAG_NONE}; | 84 hb_tag_t script_tags[3] = {HB_TAG_NONE, HB_TAG_NONE, HB_TAG_NONE}; |
| 85 hb_tag_t language_tag; | 85 hb_tag_t language_tag; |
| 86 | 86 |
| 87 hb_ot_tags_from_script (props.script, &script_tags[0], &script_tags[1]); | 87 hb_ot_tags_from_script (props.script, &script_tags[0], &script_tags[1]); |
| 88 language_tag = hb_ot_tag_from_language (props.language); | 88 language_tag = hb_ot_tag_from_language (props.language); |
| 89 | 89 |
| 90 for (unsigned int table_index = 0; table_index < 2; table_index++) { | 90 for (unsigned int table_index = 0; table_index < 2; table_index++) { |
| 91 hb_tag_t table_tag = table_tags[table_index]; | 91 hb_tag_t table_tag = table_tags[table_index]; |
| 92 found_script[table_index] = hb_ot_layout_table_choose_script (face, table_ta
g, script_tags, &script_index[table_index], &chosen_script[table_index]); | 92 found_script[table_index] = (bool) hb_ot_layout_table_choose_script (face, t
able_tag, script_tags, &script_index[table_index], &chosen_script[table_index]); |
| 93 hb_ot_layout_script_find_language (face, table_tag, script_index[table_index
], language_tag, &language_index[table_index]); | 93 hb_ot_layout_script_find_language (face, table_tag, script_index[table_index
], language_tag, &language_index[table_index]); |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 | 96 |
| 97 void hb_ot_map_builder_t::add_feature (hb_tag_t tag, unsigned int value, | 97 void hb_ot_map_builder_t::add_feature (hb_tag_t tag, unsigned int value, |
| 98 hb_ot_map_feature_flags_t flags) | 98 hb_ot_map_feature_flags_t flags) |
| 99 { | 99 { |
| 100 feature_info_t *info = feature_infos.push(); | 100 feature_info_t *info = feature_infos.push(); |
| 101 if (unlikely (!info)) return; | 101 if (unlikely (!info)) return; |
| 102 if (unlikely (!tag)) return; | 102 if (unlikely (!tag)) return; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 if (likely (stage_map)) { | 306 if (likely (stage_map)) { |
| 307 stage_map->last_lookup = last_num_lookups; | 307 stage_map->last_lookup = last_num_lookups; |
| 308 stage_map->pause_func = stages[table_index][stage_index].pause_func; | 308 stage_map->pause_func = stages[table_index][stage_index].pause_func; |
| 309 } | 309 } |
| 310 | 310 |
| 311 stage_index++; | 311 stage_index++; |
| 312 } | 312 } |
| 313 } | 313 } |
| 314 } | 314 } |
| 315 } | 315 } |
| OLD | NEW |