Skip to content

modern-pdf-lib


modern-pdf-lib / WidthEntry

Type Alias: WidthEntry

WidthEntry = { kind: "individual"; start: number; widths: readonly number[]; } | { first: number; kind: "range"; last: number; width: number; }

Defined in: src/assets/font/fontEmbed.ts:494

An entry in the CIDFont /W array.

Format 1: { start, widths } — individual widths for consecutive CIDs. Format 2: { first, last, width } — range with uniform width.

Released under the MIT License.