Skip to main content

ufomerge

This command line utility and Python library merges together two UFO source format fonts into a single file. It can be used to include glyphs from one font into another font. It takes care of handling:

  • Glyph outlines and information
  • Kerning
  • lib entries
  • Including any needed components
  • "Subsetting" and merging layout rules

Usage

To merge the glyphs of font-b.ufo into font-a.ufo and save as merged.ufo:

$ ufomerge --output merged.ufo font-a.ufo font-b.ufo

To include particular glyphs:

$ ufomerge --output merged.ufo --glyphs alpha,beta,gamma font-a.ufo font-b.ufo

To include glyphs referencing particular Unicode codepoints:

$ ufomerge --output merged.ufo --unicodes 0x03B1,0x03B2,0x03B3 font-a.ufo font-b.ufo

Other useful command line parameters:

  • -G/--glyphs-file: Read the glyphs from a file containing one glyph per line.
  • -U/--codepoints-file: Read the Unicode codepoints from a file containing one codepoint per line.
  • -x/--exclude-glyphs: Stop the given glyphs from being included.
  • -v/--verbose: Be noisier.

What to do about existing glyphs:

  • --skip-existing (the default): If a glyph from font-b already exists in font-a, nothing happens.
  • --replace-existing: If a glyph from font-b already exists in font-a, the new glyph replaces the old one.

What do to about OpenType layout (features.fea). Suppose there is a rule sub A B by C;, and the incoming glyphs are A and B:

  • --subset-layout (the default): the rule is dropped, because C is not part of the target glyphset. The ligature stops working.
  • --layout-closure: C is added to the target glyphset and merged into font-a so the ligature continues to work.
  • --ignore-layout: No layout rules are copied from font-b at all.

Usage as a Python library

ufomerge provides two functions, merge_ufos and subset_ufo. Both take ufoLib2.Font objects, and are documented in their docstrings.

License

This software is licensed under the Apache license. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ufomerge-1.9.8.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ufomerge-1.9.8-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file ufomerge-1.9.8.tar.gz.

File metadata

  • Download URL: ufomerge-1.9.8.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ufomerge-1.9.8.tar.gz
Algorithm Hash digest
SHA256 dc3a0f6939b7461ab09e5d2c8ab6cfa63c109fdd6263e2d4f45f17eabbb2f002
MD5 7d0e48516c936f873d1d4bc63bffa990
BLAKE2b-256 8e7df757e2f850589b65847c0b35063b020f48317116ba9bee810cacf9f198b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ufomerge-1.9.8.tar.gz:

Publisher: ci.yml on googlefonts/ufomerge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ufomerge-1.9.8-py3-none-any.whl.

File metadata

  • Download URL: ufomerge-1.9.8-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ufomerge-1.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fb9c2c1e606e3af63efa808c1430d20dac0311599d8053e312289a3115656142
MD5 e12046a45d720c26c58c238513c32949
BLAKE2b-256 12ed045adc57c3a209fb3505c7b4e46273983330debef676e678248a83b3f0dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for ufomerge-1.9.8-py3-none-any.whl:

Publisher: ci.yml on googlefonts/ufomerge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.9.8 This release

2 files

1.9.7

1 file

1.9.6

2 files

1.9.5

2 files

1.9.4

2 files

1.9.3

2 files

1.9.2

2 files

1.9.1

2 files

1.9.0

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.1

2 files

1.7.0

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page