提交 31ec3c2e 编写于 作者: G Garret Rieger 提交者: Behdad Esfahbod

Create a subset plan in hb_subset.

上级 6c52d94f
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "hb-object-private.hh" #include "hb-object-private.hh"
#include "hb-private.hh" #include "hb-private.hh"
#include "hb-subset-private.hh" #include "hb-subset-private.hh"
#include "hb-subset-plan.hh"
struct hb_subset_profile_t { struct hb_subset_profile_t {
hb_object_header_t header; hb_object_header_t header;
...@@ -150,6 +151,17 @@ hb_subset (hb_subset_profile_t *profile, ...@@ -150,6 +151,17 @@ hb_subset (hb_subset_profile_t *profile,
{ {
if (!profile || !input || !face) return false; if (!profile || !input || !face) return false;
hb_subset_plan_t *plan = hb_subset_plan_create (face->face, profile, input);
// TODO:
// - Create initial header + table directory
// - Loop through the set of tables to be kept:
// - Perform table specific subsetting if defined.
// - copy the table into the output.
// - Fix header + table directory.
*result = hb_face_reference_blob(face->face); *result = hb_face_reference_blob(face->face);
hb_subset_plan_destroy (plan);
return true; return true;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册