From: Garret Rieger Date: Wed, 7 Mar 2018 18:17:06 +0000 (-0800) Subject: [subset] cleanup. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91867cda6ae5ae063482b28b0a52ebc30718cb40;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [subset] cleanup. --- diff --git a/src/hb-subset.cc b/src/hb-subset.cc index 0f46485..541987b 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -253,7 +253,7 @@ _subset_table (hb_subset_plan_t *plan, result = _subset (plan); break; case HB_OT_TAG_vhea: - DEBUG_MSG(SUBSET, nullptr, "skip vhea handled by hmtx"); + DEBUG_MSG(SUBSET, nullptr, "skip vhea handled by vmtx"); return true; case HB_OT_TAG_vmtx: result = _subset (plan); diff --git a/test/api/test-subset-vmtx.c b/test/api/test-subset-vmtx.c index 0abab8c..f1d94f3 100644 --- a/test/api/test-subset-vmtx.c +++ b/test/api/test-subset-vmtx.c @@ -31,12 +31,11 @@ /* Unit tests for hmtx subsetting */ -static void check_num_vmetrics(hb_face_t *face, uint16_t expected_num_hmetrics) +static void check_num_vmetrics(hb_face_t *face, uint16_t expected_num_vmetrics) { hb_blob_t *vhea_blob = hb_face_reference_table (face, HB_TAG ('v','h','e','a')); hb_blob_t *vmtx_blob = hb_face_reference_table (face, HB_TAG ('v','m','t','x')); - // TODO I sure wish I could just use the hmtx table struct! unsigned int vhea_len; uint8_t *raw_vhea = (uint8_t *) hb_blob_get_data(vhea_blob, &vhea_len); uint16_t num_hmetrics = (raw_vhea[vhea_len - 2] << 8) + raw_vhea[vhea_len - 1];