{"id":14981609,"url":"https://github.com/figma-linux/libfonthelper","last_synced_at":"2026-03-09T01:33:16.252Z","repository":{"id":62442049,"uuid":"203965323","full_name":"Figma-Linux/libfonthelper","owner":"Figma-Linux","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-03T20:13:08.000Z","size":29,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T04:14:59.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Figma-Linux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-08-23T09:15:03.000Z","updated_at":"2021-10-11T22:40:58.000Z","dependencies_parsed_at":"2024-11-06T09:02:51.174Z","dependency_job_id":null,"html_url":"https://github.com/Figma-Linux/libfonthelper","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"56e40da7b9ab7f95ef90092a67e77bdea177aa30"},"previous_names":["chugunovroman/libfonthelper"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Figma-Linux%2Flibfonthelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Figma-Linux%2Flibfonthelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Figma-Linux%2Flibfonthelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Figma-Linux%2Flibfonthelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Figma-Linux","download_url":"https://codeload.github.com/Figma-Linux/libfonthelper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242144584,"owners_count":20078970,"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-09-24T14:03:55.835Z","updated_at":"2026-03-09T01:33:16.139Z","avatar_url":"https://github.com/Figma-Linux.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nThis module find (by mask: \\\\.(tt[fc]|otf|pfb)) and combine all fonts from the passed directories.\nAnd returns IFonts object of fonts of next structure:\n\n```typescript\ninterface IFontsFigmaItem {\n\tpostscript: string;\n\tfamily: string;\n\tid: string;\n\tstyle?: string;\n\tweight?: number;\n\tstretch?: number;\n\titalic?: boolean;\n}\n\ninterface IFonts {\n\t[path: string]: Array\u003cIFontsFigmaItem\u003e\n}\n```\n\nExample:\n\n```javascript\n{ '/usr/share/fonts/opentype/stix/STIXVariants-Bold.otf':\n   [ { postscript: 'STIXVariants-Bold',\n       family: 'STIXVariants',\n       id: 'STIXVariants',\n       style: 'Bold',\n       weight: 400,\n       stretch: 5,\n       italic: false } ],\n  '/usr/share/fonts/opentype/stix/STIXIntegralsUpSm-Bold.otf':\n   [ { postscript: 'STIXIntegralsUpSm-Bold',\n       family: 'STIXIntegralsUpSm',\n       id: 'STIXIntegralsUpSm',\n       style: 'Bold',\n       weight: 400,\n       stretch: 5,\n       italic: false } ],\n  '/usr/share/fonts/opentype/stix/STIXNonUnicode-Regular.otf':\n   [ { postscript: 'STIXNonUnicode-Regular',\n       family: 'STIXNonUnicode',\n       id: 'STIXNonUnicode',\n       style: 'Regular',\n       weight: 400,\n       stretch: 5,\n       italic: false } ],\n  '/usr/share/fonts/opentype/stix/STIXSizeFourSym-Regular.otf':\n   [ { postscript: 'STIXSizeFourSym-Regular',\n       family: 'STIXSizeFourSym',\n       id: 'STIXSizeFourSym',\n       style: 'Regular',\n       weight: 400,\n       stretch: 5,\n       italic: false } ],\n  '/usr/share/fonts/opentype/noto/NotoSansCJK-DemiLight.ttc':\n   [ { postscript: 'NotoSansCJKjp-DemiLight',\n       family: 'Noto Sans CJK JP',\n       id: 'Noto Sans CJK JP',\n       style: 'DemiLight',\n       weight: 400,\n       stretch: 5,\n       italic: false },\n     { postscript: 'NotoSansCJKkr-DemiLight',\n       family: 'Noto Sans CJK KR',\n       id: 'Noto Sans CJK KR',\n       style: 'DemiLight',\n       weight: 400,\n       stretch: 5,\n       italic: false },\n     { postscript: 'NotoSansCJKsc-DemiLight',\n       family: 'Noto Sans CJK SC',\n       id: 'Noto Sans CJK SC',\n       style: 'DemiLight',\n       weight: 400,\n       stretch: 5,\n       italic: false },\n     { postscript: 'NotoSansCJKtc-DemiLight',\n       family: 'Noto Sans CJK TC',\n       id: 'Noto Sans CJK TC',\n       style: 'DemiLight',\n       weight: 400,\n       stretch: 5,\n       italic: false } ],\n  '/usr/share/fonts/opentype/noto/NotoSansCJK-Thin.ttc':\n   [ { postscript: 'NotoSansCJKjp-Thin',\n       family: 'Noto Sans CJK JP',\n       id: 'Noto Sans CJK JP',\n       style: 'Thin',\n       weight: 400,\n       stretch: 5,\n       italic: false },\n     { postscript: 'NotoSansCJKkr-Thin',\n       family: 'Noto Sans CJK KR',\n       id: 'Noto Sans CJK KR',\n       style: 'Thin',\n       weight: 400,\n       stretch: 5,\n       italic: false },\n     { postscript: 'NotoSansCJKsc-Thin',\n       family: 'Noto Sans CJK SC',\n       id: 'Noto Sans CJK SC',\n       style: 'Thin',\n       weight: 400,\n       stretch: 5,\n       italic: false },\n     { postscript: 'NotoSansCJKtc-Thin',\n       family: 'Noto Sans CJK TC',\n       id: 'Noto Sans CJK TC',\n       style: 'Thin',\n       weight: 400,\n       stretch: 5,\n       italic: false } ] }\n```\n\n# Usage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffigma-linux%2Flibfonthelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffigma-linux%2Flibfonthelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffigma-linux%2Flibfonthelper/lists"}