draw

module pkg::alloy::text::shaping::tagssource

OpenType's script tags for a run, as HarfBuzz gives them (hb-ot-tag.cc): a script's new tags (dev3, dev2) before its old one (deva). The language systems a BCP 47 tag names are text_scripts'.

type Tagssource

exp type Tags = struct

Up to three tags, the first preferred.

Fields

exp values: [u32 : 3] = [0, 0, 0]
exp count: u64 = 0

Functions

fn pushsource

exp fn push(self tags: &var Tags, value: u32)

fn viewsource

exp fn view(self tags: &Tags) -> &[u32]

fn script_tagssource

exp fn script_tags(s: Script) -> Tags

The script's tags, the newest specification's first.

fn is_right_to_left_scriptsource

exp fn is_right_to_left_script(s: Script) -> bool

Whether the script is written right to left.

fn is_either_direction_scriptsource

exp fn is_either_direction_script(s: Script) -> bool

Whether the script may be written either way.