ot_layout_get_size_params


Description:


[ Version ( since = "0.9.10" ) ]
public Bool ot_layout_get_size_params (Face face, out uint design_size, out uint subfamily_id, out OtNameId subfamily_name_id, out uint range_start, out uint range_end)

Fetches optical-size feature data (i.

e., the `size` feature from GPOS). Note that the subfamily_id and the subfamily name string (accessible via the subfamily_name_id) as used here are defined as pertaining only to fonts within a font family that differ specifically in their respective size ranges; other ways to differentiate fonts within a subfamily are not covered by the `size` feature.

For more information on this distinction, see the [`size` feature documentation]( https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-size).

Parameters:

face

Face to work upon

design_size

The design size of the face

subfamily_id

The identifier of the face within the font subfamily

subfamily_name_id

The ‘name’ table name ID of the face within the font subfamily

range_start

The minimum size of the recommended size range for the face

range_end

The maximum size of the recommended size range for the face

Returns:

`true` if data found, `false` otherwise


Namespace: HarfBuzz