Skip to Main content

tuyen font subset

Create a subset of a font file containing only specified Unicode ranges and weights.

Usage

tuyen font subset [OPTIONS]

Options

-i, --input <INPUT>

  • Path to the input font file.
  • Alias: src.

-o, --output <OUTPUT>

  • Path for the output subset font file.
  • Alias: dest.

-w, --wght <WGHT>

  • Weight axis range to keep in the subset font.
    Use a single value for one weight or a colon-separated range.
  • Default value: 400:700.

-u, --unicodes <UNICODES>

  • Unicode ranges to include in the subset, specified as comma-separated values.
    If omitted, the Latin and Vietnamese character ranges are used.

--additional-code <ADDITIONAL_CODE>

  • Extra Unicode code points to add beyond the specified or default ranges.
  • Alias: ac.

-f, --flavor <FLAVOR>

  • Output font format for the subset file.
  • Default value: woff2.

-l, --layout-features <LAYOUT_FEATURES>

  • OpenType layout features to preserve in the subset font.
  • Default value: kern.

-k, --keep-axes <KEEP_AXES>

  • Keep all variation axes from the input font unchanged.
  • Default value: false.
  • Possible values: true, false.

--no-hinting

  • Remove hinting instructions to reduce the output file size.
  • Default value: true.
  • Possible values: true, false.

--no-meta

  • Remove the font metadata table from the output.
  • Default value: true.
  • Possible values: true, false.

--no-legacy-kern

  • Remove the legacy kern table, keeping only GPOS kerning.
  • Default value: true.
  • Possible values: true, false.

--desubroutinize

  • Flatten CFF subroutines for better compression.
  • Default value: true.
  • Possible values: true, false.

-h, --help

  • Print help.