{"id":18148378,"url":"https://github.com/tinymins/merge-font","last_synced_at":"2025-04-06T21:47:32.696Z","repository":{"id":66992018,"uuid":"253877478","full_name":"tinymins/merge-font","owner":"tinymins","description":"Merge Font With Code Point Mapping","archived":false,"fork":false,"pushed_at":"2020-04-10T18:19:16.000Z","size":115,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T03:51:52.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinymins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-04-07T18:21:23.000Z","updated_at":"2022-08-18T08:13:32.000Z","dependencies_parsed_at":"2023-03-13T20:29:04.630Z","dependency_job_id":null,"html_url":"https://github.com/tinymins/merge-font","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/tinymins%2Fmerge-font","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymins%2Fmerge-font/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymins%2Fmerge-font/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymins%2Fmerge-font/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinymins","download_url":"https://codeload.github.com/tinymins/merge-font/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557805,"owners_count":20958047,"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-11-01T23:08:28.383Z","updated_at":"2025-04-06T21:47:32.679Z","avatar_url":"https://github.com/tinymins.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Merge Font With Code Point Mapping\r\n\r\nThis project is building for merge ttf font file with custom code point mapping. Basicly, it supply two cp-mapping mode: zh2Hans and zh2Hant.\r\n\r\nAssume that you already got two fonts: Font-Hans.ttf for Simplified Chinese, and Font-Hant for Traditional Chinese.\r\n\r\nYou can simplely input command to merge all Traditional Chinese characters into font file as Simplified Chinese code point:\r\n```\r\npython merge-font.py Font-Hans.ttf Font-Hant.ttf Hant2Hans output.ttf\r\n```\r\n\r\nIn oppsite, you can simplely input command to merge all Simplified Chinese characters into font file as Traditional Chinese code point:\r\n```\r\npython merge-font.py Font-Hant.ttf Font-Hans.ttf Hans2Hant output.ttf\r\n```\r\n\r\nWhat's more, there are two extra modes `Hans` and `Hant` mode, which means all Simplified/Traditional Chinese characters will be merged to base.\r\n\r\n## Options\r\n\r\n### --cmap\r\n\r\nYou can pass `cmap` version list. By default, all version of cmap will be updated during insertion.\r\n\r\n```\r\n--cmap 12\r\n--cmap 4,12\r\n```\r\n\r\n### --optimize\r\n\r\nYou can pass `--optimize` if you want to make your font smaller. This option will remove all empty glyphs from cmap list.\r\n\r\n## Notice\r\n\r\nSome fonts contains to much code point in low versioned cmap list such as `cmap_format_4`. So font merge may got crashed when trying insert new cmap. If you have this kind of problem, try use `--optimize` option and try again. If the problem is still, try use `--cmap` option to pass specific cmap versions and try again.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymins%2Fmerge-font","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinymins%2Fmerge-font","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymins%2Fmerge-font/lists"}