From eac20e459564134e0087497ed76b1c84195ad7e3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 4 Feb 2018 20:08:50 -0500 Subject: [PATCH] [subset] Minor --- util/Makefile.am | 2 +- util/Makefile.sources | 2 +- util/hb-subset.cc | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/util/Makefile.am b/util/Makefile.am index cd5e31cbc..283dd91ff 100644 --- a/util/Makefile.am +++ b/util/Makefile.am @@ -46,7 +46,7 @@ endif # HAVE_FREETYPE hb_shape_SOURCES = $(HB_SHAPE_sources) bin_PROGRAMS += hb-shape -hb_subset_SOURCES = $(HB_SUBSET_CLI_sources) +hb_subset_SOURCES = $(HB_SUBSET_sources) bin_PROGRAMS += hb-subset if HAVE_OT diff --git a/util/Makefile.sources b/util/Makefile.sources index 6c815d26b..c4516ebcb 100644 --- a/util/Makefile.sources +++ b/util/Makefile.sources @@ -29,7 +29,7 @@ HB_OT_SHAPE_CLOSURE_sources = \ main-font-text.hh \ $(NULL) -HB_SUBSET_CLI_sources = \ +HB_SUBSET_sources = \ hb-subset.cc \ options.cc \ options.hh \ diff --git a/util/hb-subset.cc b/util/hb-subset.cc index 808cb04f2..21d0f767b 100644 --- a/util/hb-subset.cc +++ b/util/hb-subset.cc @@ -52,8 +52,8 @@ struct subset_consumer_t { } - hb_bool_t - write_file (const char *output_file, hb_blob_t *blob) { + hb_bool_t + write_file (const char *output_file, hb_blob_t *blob) { unsigned int data_length; const char* data = hb_blob_get_data (blob, &data_length); @@ -68,10 +68,10 @@ struct subset_consumer_t return false; } if (bytes_written != data_length) { - fprintf(stderr, "Expected %u bytes written, got %ld\n", data_length, + fprintf(stderr, "Expected %u bytes written, got %ld\n", data_length, bytes_written); return false; - } + } return true; } @@ -80,7 +80,7 @@ struct subset_consumer_t // TODO(Q1) check for errors from creates and such hb_subset_profile_t *subset_profile = hb_subset_profile_create(); hb_subset_input_t *subset_input = hb_subset_input_create(); - hb_face_t *face = hb_font_get_face (font); + hb_face_t *face = hb_font_get_face (font); hb_subset_face_t *subset_face = hb_subset_face_create(face); hb_blob_t *result = nullptr;