{"id":16160561,"url":"https://github.com/eallion/font-spider-smiley-opengraph","last_synced_at":"2026-01-20T00:13:02.080Z","repository":{"id":206237016,"uuid":"672839017","full_name":"eallion/font-spider-smiley-opengraph","owner":"eallion","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-08T15:16:18.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T07:46:25.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/eallion.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}},"created_at":"2023-07-31T09:30:36.000Z","updated_at":"2023-07-31T09:34:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"74bce99e-a8bd-437b-a480-96a6fc277e9e","html_url":"https://github.com/eallion/font-spider-smiley-opengraph","commit_stats":null,"previous_names":["eallion/font-spider-smiley-opengraph"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eallion%2Ffont-spider-smiley-opengraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eallion%2Ffont-spider-smiley-opengraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eallion%2Ffont-spider-smiley-opengraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eallion%2Ffont-spider-smiley-opengraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eallion","download_url":"https://codeload.github.com/eallion/font-spider-smiley-opengraph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247584060,"owners_count":20962071,"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-10-10T02:03:30.664Z","updated_at":"2026-01-20T00:13:02.053Z","avatar_url":"https://github.com/eallion.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Font Spider 压缩字体文件\n\n- https://github.com/eallion/font-spider-smiley-opengraph\n\n```bash\nmkdir font-spider \u0026\u0026 cd font-spider\n# 安装 Font Spider\nnpm install font-spider -g\n\n# 生成 import.html 模板内容\nvim import.html\n\n# 从 Summary.json 文件中提取 Title 放入到 index.html 中\ncat summary.json | jq -r '.summaries[] | \"\u003ch1\u003e\\(.title)\u003c/h1\u003e\"' | sed -e '/\u003cbody\u003e/r /dev/stdin' import.html \u003e index.html\n\n# 生成 Title 用到的字体\nfont-spider index.html --no-backup --debug\n```\n\n`NotoSerifCJKsc-Regular.ttf` 字体文件放到当前目录，把生成后的字体复制到目标项目 [`Public`](https://github.com/eallion/vercel.og/tree/main/public) 中。  \n\n`summary.json` 内容来自博客仓库 \u003chttps://github.com/eallion/eallion.com/blob/main/data/summary/summary.json\u003e\n\n`import.html` 内容：\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003ctitle\u003eDocument\u003c/title\u003e\n    \u003cstyle\u003e\n        @font-face {\n            font-family: 'import.html';\n            src: url('NotoSerifCJKsc-Regular.ttf') format('truetype');\n            font-weight: normal;\n            font-style: normal;\n        }\n        h1,\n        p {\n            font-family: 'import.html',sans-serif;\n        }\n    \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feallion%2Ffont-spider-smiley-opengraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feallion%2Ffont-spider-smiley-opengraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feallion%2Ffont-spider-smiley-opengraph/lists"}