QtBase
v6.3.1
|
#include "hb-subset-plan.hh"
#include "hb-map.hh"
#include "hb-set.hh"
#include "hb-ot-cmap-table.hh"
#include "hb-ot-glyf-table.hh"
#include "hb-ot-layout-gdef-table.hh"
#include "hb-ot-layout-gpos-table.hh"
#include "hb-ot-layout-gsub-table.hh"
#include "hb-ot-cff1-table.hh"
#include "hb-ot-color-colr-table.hh"
#include "hb-ot-color-colrv1-closure.hh"
#include "hb-ot-var-fvar-table.hh"
#include "hb-ot-stat-table.hh"
#include "hb-ot-math-table.hh"
Go to the source code of this file.
Typedefs | |
typedef hb_hashmap_t< unsigned, hb_set_t * > | script_langsys_map |
typedef void(* | layout_collect_func_t) (hb_face_t *face, hb_tag_t table_tag, const hb_tag_t *scripts, const hb_tag_t *languages, const hb_tag_t *features, hb_set_t *lookup_indexes) |
typedef void(* layout_collect_func_t) (hb_face_t *face, hb_tag_t table_tag, const hb_tag_t *scripts, const hb_tag_t *languages, const hb_tag_t *features, hb_set_t *lookup_indexes) |
Definition at line 91 of file hb-subset-plan.cc.
typedef hb_hashmap_t<unsigned, hb_set_t *> script_langsys_map |
Definition at line 46 of file hb-subset-plan.cc.
hb_subset_plan_t* hb_subset_plan_create_or_fail | ( | hb_face_t * | face, |
const hb_subset_input_t * | input | ||
) |
hb_subset_plan_create_or_fail: @face: font face to create the plan for. @input: a hb_subset_input_t input.
Computes a plan for subsetting the supplied face according to a provided input. The plan describes which tables and glyphs should be retained.
Return value: (transfer full): New subset plan. Destroy with hb_subset_plan_destroy(). If there is a failure creating the plan nullptr will be returned.
Since: 4.0.0
Definition at line 478 of file hb-subset-plan.cc.
void hb_subset_plan_destroy | ( | hb_subset_plan_t * | plan | ) |
hb_subset_plan_destroy: @plan: a hb_subset_plan_t
Decreases the reference count on @plan, and if it reaches zero, destroys @plan, freeing all memory.
Since: 4.0.0
Definition at line 556 of file hb-subset-plan.cc.
void* hb_subset_plan_get_user_data | ( | const hb_subset_plan_t * | plan, |
hb_user_data_key_t * | key | ||
) |
hb_subset_plan_get_user_data: (skip) @plan: a hb_subset_plan_t object. @key: The user-data key to query
Fetches the user data associated with the specified key, attached to the specified subset plan object.
Return value: (transfer none): A pointer to the user data
Since: 4.0.0
Definition at line 715 of file hb-subset-plan.cc.
const hb_map_t* hb_subset_plan_new_to_old_glyph_mapping | ( | const hb_subset_plan_t * | plan | ) |
hb_subset_plan_new_to_old_glyph_mapping: @plan: a subsetting plan.
Returns the mapping between glyphs in the subset that will be produced by @plan and the glyph in the original font.
Return value: (transfer none): A pointer to the hb_map_t of the mapping.
Since: 4.0.0
Definition at line 639 of file hb-subset-plan.cc.
const hb_map_t* hb_subset_plan_old_to_new_glyph_mapping | ( | const hb_subset_plan_t * | plan | ) |
hb_subset_plan_old_to_new_glyph_mapping: @plan: a subsetting plan.
Returns the mapping between glyphs in the original font to glyphs in the subset that will be produced by @plan
Return value: (transfer none): A pointer to the hb_map_t of the mapping.
Since: 4.0.0
Definition at line 621 of file hb-subset-plan.cc.
hb_subset_plan_t* hb_subset_plan_reference | ( | hb_subset_plan_t * | plan | ) |
hb_subset_plan_reference: (skip) @plan: a hb_subset_plan_t object.
Increases the reference count on @plan.
Return value: @plan.
Since: 4.0.0
Definition at line 673 of file hb-subset-plan.cc.
hb_bool_t hb_subset_plan_set_user_data | ( | hb_subset_plan_t * | plan, |
hb_user_data_key_t * | key, | ||
void * | data, | ||
hb_destroy_func_t | destroy, | ||
hb_bool_t | replace | ||
) |
hb_subset_plan_set_user_data: (skip) @plan: a hb_subset_plan_t object. @key: The user-data key to set @data: A pointer to the user data @destroy: (nullable): A callback to call when @data is not needed anymore @replace: Whether to replace an existing data with the same key
Attaches a user-data key/data pair to the given subset plan object.
Return value: true if success, false otherwise
Since: 4.0.0
Definition at line 693 of file hb-subset-plan.cc.
const hb_map_t* hb_subset_plan_unicode_to_old_glyph_mapping | ( | const hb_subset_plan_t * | plan | ) |
hb_subset_plan_unicode_to_old_glyph_mapping: @plan: a subsetting plan.
Returns the mapping between codepoints in the original font and the associated glyph id in the original font.
Return value: (transfer none): A pointer to the hb_map_t of the mapping.
Since: 4.0.0
Definition at line 657 of file hb-subset-plan.cc.