{"id":13690221,"url":"https://github.com/bramstein/opentype","last_synced_at":"2025-05-02T06:32:25.361Z","repository":{"id":10448116,"uuid":"12616661","full_name":"bramstein/opentype","owner":"bramstein","description":"An OpenType, TrueType, WOFF, and WOFF2 parser in JavaScript","archived":true,"fork":false,"pushed_at":"2022-05-16T12:17:07.000Z","size":543,"stargazers_count":133,"open_issues_count":0,"forks_count":21,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-12T12:43:12.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bramstein.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}},"created_at":"2013-09-05T12:01:36.000Z","updated_at":"2023-03-29T16:38:51.000Z","dependencies_parsed_at":"2022-09-06T19:02:03.067Z","dependency_job_id":null,"html_url":"https://github.com/bramstein/opentype","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fopentype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fopentype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fopentype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fopentype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramstein","download_url":"https://codeload.github.com/bramstein/opentype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251998721,"owners_count":21678007,"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-02T16:00:49.659Z","updated_at":"2025-05-02T06:32:24.876Z","avatar_url":"https://github.com/bramstein.png","language":"JavaScript","readme":"## DEPRECATED: An OpenType font parser in JavaScript\n\n*This package is deprecated, please use [OpenType.js](https://opentype.js.org/), [Fontkit](https://github.com/foliojs/fontkit), or [lib-font](https://github.com/Pomax/lib-font) instead.*\n\nThis is a pure JavaScript parser for OpenType font files. It supports fonts with CFF and TrueType outlines, and can read fonts wrapped as WOFF and WOFF2.\n\nThe following OpenType tables are currently supported:\n\n* CMAP (only format 0, 4, 12, and 13)\n* head\n* hhea\n* maxp\n* hmtx\n* name\n* OS/2\n* post\n* GSUB (excluding LookupType 5, 6, 7, and 8)\n* GDEF (only the Glyph Class Definitions)\n* gasp\n\nThis roughly corresponds to all the metadata available in most fonts. I'm hoping to add support for glyf, CFF, and related tables time permitting.\n\n## Usage\n\n```\nnpm install opentype\n```\n\n```\nvar opentype = require('opentype');\nvar fs = require('fs');\n\nfs.readFile('font.otf', function (err, data) {\n  var font = opentype.parse(data);\n});\n\n```\n\n## Copyright and License\n\nThis library is licensed under the three-clause BSD license. Copyright 2013-2016 Bram Stein. All rights reserved.\n","funding_links":[],"categories":["JavaScript","Documents"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramstein%2Fopentype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramstein%2Fopentype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramstein%2Fopentype/lists"}