{"id":13721448,"url":"https://github.com/adobe-type-tools/kern-dump","last_synced_at":"2025-04-14T23:43:27.662Z","repository":{"id":12476931,"uuid":"15145059","full_name":"adobe-type-tools/kern-dump","owner":"adobe-type-tools","description":"Scripts for working with and analyzing kerning information","archived":false,"fork":false,"pushed_at":"2024-05-03T15:45:17.000Z","size":3609,"stargazers_count":67,"open_issues_count":2,"forks_count":8,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-14T23:43:22.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adobe-type-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-12-12T19:17:41.000Z","updated_at":"2025-03-21T11:33:09.000Z","dependencies_parsed_at":"2023-10-11T15:43:21.302Z","dependency_job_id":"7afbeaeb-e1a9-41ad-82e4-0819b316452d","html_url":"https://github.com/adobe-type-tools/kern-dump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe-type-tools%2Fkern-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe-type-tools%2Fkern-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe-type-tools%2Fkern-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe-type-tools%2Fkern-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adobe-type-tools","download_url":"https://codeload.github.com/adobe-type-tools/kern-dump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981259,"owners_count":21193143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:01:17.207Z","updated_at":"2025-04-14T23:43:27.646Z","avatar_url":"https://github.com/adobe-type-tools.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/adobe-bot/116f9fefb73f6fcf9ffe8ce34d72efd7/raw/covbadge.json)\n\n# kernDump\nVarious scripts for analyzing, reading and writing kerning information. These\ncan be helpful for analyzing kerning (and the loss thereof) through various\nstages of font production. Some of these tools have been presented at [ATypI Amsterdam 2013](https://atypi.org/presentation/yearning-for-kerning/).\n\n---\n\n### `convertKernedOTFtoKernedUFO.py`\nExtracts kerning and groups from a compiled OTF and injects them into a new UFO file (which is created via `tx`).\n\n__Dependencies:__ `getKerningPairsFromOTF.py` (same repo), [fontTools](https://github.com/fonttools/fonttools), `tx` (Part of the [Adobe FDK](https://github.com/adobe-type-tools/afdko))  \n__Environment:__ command line\n```zsh\npython3 convertKernedOTFtoKernedUFO.py font.otf\n```\n\n---\n\n### `dumpkerning.py`\nJust van Rossum wrote this script. It imports all of the `getKerningPairsFromXXX` scripts (except VFB), and therefore can dump kerning from all kinds of formats (except VFB). Results in a `.kerndump` file at the location of the input file.\n\n__Dependencies:__ `getKerningPairsFromFEA.py`, `getKerningPairsFromOTF.py`, `getKerningPairsFromUFO.py` (same repo)  \n__Environment:__ command line\n```zsh\npython3 dumpkerning.py font.otf\npython3 dumpkerning.py font.ufo\npython3 dumpkerning.py kern.fea\n```\n\n---\n\n### `getKerningPairsFromFEA.py`\nExtract a list of all kerning pairs that would be created from a feature file.\nHas the ability to use a GlyphOrderAndAliasDB file for translation of\n“friendly” glyph names to final glyph names (for comparison with the output of\n`getKerningPairsFromOTF.py`)\n\n__Dependencies:__ None  \n__Environment:__ command line\n\n```zsh\npython3 getKerningPairsFromFEA.py kern.fea\npython3 getKerningPairsFromFEA.py -go \u003cpath to GlyphOrderAndAliasDB file\u003e kern.fea\n\n```\n\n---\n\n### `getKerningPairsFromOTF.py`\nExtract a list of all (flat) GPOS kerning pairs in a font, and report the\nabsolute number of pairs.\n\n__Dependencies:__ [fontTools](https://github.com/behdad/fonttools)  \n__Environment:__ command line\n\n```zsh\npython3 getKerningPairsFromOTF.py font.otf\npython3 getKerningPairsFromOTF.py font.ttf\n```\n\n---\n\n### `getKerningPairsFromUFO.py`\nExtract a list of all (flat) kerning pairs in a UFO file’s kern object, and\nreport the absolute number of pairs.\n\n__Dependencies:__ [defcon](https://github.com/typesupply/defcon) or Robofont  \n__Environment:__ command line or Robofont\n\n```zsh\npython3 getKerningPairsFromUFO.py font.ufo\n```\n\n---\n\n### `getKerningPairsFromVFB.py`\nExtract a list of all (flat) kerning pairs from a VFB’s kern object, and\nreport the absolute number of pairs. Run as a FontLab script. (not tested in several years)\n\n__Dependencies:__ [FontLab 5](http://old.fontlab.com/font-editor/fontlab-studio/)  \n__Environment:__ FontLab Studio 5\n\n---\n\n### `kernInfoWindow.py`\n(Silly) visualization of absolute kerning distance.\nExample of using the above `getKerningPairsFromUFO.py` from within Robofont.\n\n__Dependencies:__ `getKerningPairsFromUFO.py` (above)  \n__Environment:__ Robofont\n\n\u003cimg src=\"kernInfoWindow.png\" width=\"412\" height=\"384\" alt=\"Kern Info Window\" /\u003e\n\n---\n\n### `kernMap.py`\nSimple map to illustrate kerning topography.\n\nBy default, the output is an interactive html `canvas`, for exploration of the\nkerning map. Use `pixel` or `svg` formats to obtain a fingerprint of the\nkerning data.\n\nAn optional glyph list can be supplied (one glyph name per line), which will\ninfluence the size of the kerning map, and override the built-in glyph order.\n\n__Environment:__ command line\n\n\u003cimg src=\"kernmap_canvas.png\" alt=\"KernMap canvas\" /\u003e\n\u003cimg src=\"kernmap_pixel.png\" alt=\"KernMap pixel\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadobe-type-tools%2Fkern-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadobe-type-tools%2Fkern-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadobe-type-tools%2Fkern-dump/lists"}