{"id":19218633,"url":"https://github.com/shepherdwind/font-mount","last_synced_at":"2026-06-19T15:02:27.255Z","repository":{"id":66093420,"uuid":"61416928","full_name":"shepherdwind/font-mount","owner":"shepherdwind","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-26T03:47:48.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-14T15:30:33.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/shepherdwind.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":"2016-06-18T04:28:31.000Z","updated_at":"2016-06-18T04:31:38.000Z","dependencies_parsed_at":"2023-03-07T11:00:49.413Z","dependency_job_id":null,"html_url":"https://github.com/shepherdwind/font-mount","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shepherdwind/font-mount","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ffont-mount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ffont-mount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ffont-mount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ffont-mount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shepherdwind","download_url":"https://codeload.github.com/shepherdwind/font-mount/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ffont-mount/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34536283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T14:27:33.355Z","updated_at":"2026-06-19T15:02:27.233Z","avatar_url":"https://github.com/shepherdwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### font-mount\n\nTo install some font for linux system. For example, If you use phantomjs to capture\nweb contents, you may face the problem that Linux do not have any font default.\n\nThis package is to solve this problem.\n\n### How to work\n\n- https://wiki.debian.org/Fonts\n- https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-x-fonts.html\n\nFrom those wiki, we can install fonts just two step:\n\n1. Copy font to user dir `~/.fonts/`\n2. Run `fc-cache` to update font config\n\nAfter those step, you can use what ever font you like.\n\nFor example https://github.com/adobe-fonts/source-han-sans , which open source\nfonts, and support cjk fonts.\n\n### How to use\n\n```js\nconst fontMount = require('font-mount');\nfontMount('/path/fonts/SourceHanSansHWSC-Regular.otf');\n\n// or\nfontMount({\n  fontSource: '/path/fonts/SourceHanSansHWSC-Regular.otf',\n  fontName: 'SourceHanSansHWSC-Regular.otf',\n  fontDist: '~/.fonts/',\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshepherdwind%2Ffont-mount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshepherdwind%2Ffont-mount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshepherdwind%2Ffont-mount/lists"}