ShapePlan
Object Hierarchy:
HarfBuzz.ShapePlan
HarfBuzz.ShapePlan
HarfBuzz.ShapePlan
Description:
[ CCode ( cname = "hb_shape_plan_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "hb_gobject_shape_plan_get_type ()" ) ] [ Compact ] [ GIR ( name = "shape_plan_t" ) ]public class ShapePlan
Data type for holding a shaping plan.
Shape plans contain information about how HarfBuzz will shape a particular text segment, based on the segment's properties and the capabilities
in the font face in use.
Shape plans can be queried about how shaping will perform, given a set of specific input parameters (script, language, direction, features,
etc.).
Content:
Static methods:
public static ShapePlan create (Face face, SegmentProperties props, Feature [] user_features, string [] shaper_list)
Constructs a shaping plan for a combination of face,
user_features, props, and shaper_list.
public static ShapePlan create2 (Face face, SegmentProperties props, Feature [] user_features, int [] coords, string [] shaper_list)
The variable-font version of
create .
public static ShapePlan create_cached (Face face, SegmentProperties props, Feature [] user_features, string [] shaper_list)
Creates a cached shaping plan suitable for reuse, for a combination of
face, user_features, props, and shaper_list.
public static ShapePlan create_cached2 (Face face, SegmentProperties props, Feature [] user_features, int [] coords, string [] shaper_list)
public static ShapePlan get_empty ()
Fetches the singleton empty shaping plan.
Methods:
public Bool execute (Font font, Buffer buffer, Feature [] features)
Executes the given shaping plan on the specified buffer, using the given
font and features.
public unowned string get_shaper ()
Fetches the shaper from a given shaping plan.