#include "main-font-text.hh"
#include "hb-subset.h"
-#include "hb-subset-private.hh"
/*
* Command line interface to the harfbuzz font subsetter.
void finish (const font_options_t *font_opts)
{
- input->drop_hints = subset_options.drop_hints;
+ hb_subset_input_set_drop_layout (input, !subset_options.keep_layout);
+ hb_subset_input_set_drop_hints (input, subset_options.drop_hints);
+ hb_subset_input_set_desubroutinize (input, subset_options.desubroutinize);
- hb_subset_profile_t *subset_profile = hb_subset_profile_create();
hb_face_t *face = hb_font_get_face (font);
- hb_face_t *new_face = hb_subset(face, subset_profile, input);
+ hb_face_t *new_face = hb_subset (face, input);
hb_blob_t *result = hb_face_reference_blob (new_face);
failed = !hb_blob_get_length (result);
if (!failed)
write_file (options.output_file, result);
- hb_subset_profile_destroy (subset_profile);
hb_subset_input_destroy (input);
hb_blob_destroy (result);
hb_face_destroy (new_face);