Skip to main content

parse_w_array

Function parse_w_array 

Source
pub fn parse_w_array(objects: &[Object], doc: &Document) -> HashMap<u32, f64>
Expand description

Parse a /W (width) array from a CID font dictionary.

The /W array has the format:

[ c [w1 w2 ...] c_first c_last w ... ]

Where:

  • c [w1 w2 ...] assigns widths w1, w2, … to CIDs c, c+1, c+2, …
  • c_first c_last w assigns width w to all CIDs from c_first to c_last