{"id":20206058,"url":"https://github.com/jaredrummler/truetypeparser","last_synced_at":"2025-04-10T12:21:06.812Z","repository":{"id":57725510,"uuid":"51805095","full_name":"jaredrummler/TrueTypeParser","owner":"jaredrummler","description":"TrueType Font Parser for Android","archived":false,"fork":false,"pushed_at":"2020-06-16T18:38:52.000Z","size":498,"stargazers_count":37,"open_issues_count":3,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T11:08:02.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredrummler.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}},"created_at":"2016-02-16T03:28:24.000Z","updated_at":"2025-01-07T05:18:03.000Z","dependencies_parsed_at":"2022-09-11T19:21:18.163Z","dependency_job_id":null,"html_url":"https://github.com/jaredrummler/TrueTypeParser","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/jaredrummler%2FTrueTypeParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FTrueTypeParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FTrueTypeParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FTrueTypeParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredrummler","download_url":"https://codeload.github.com/jaredrummler/TrueTypeParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217179,"owners_count":21066633,"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-14T05:21:00.800Z","updated_at":"2025-04-10T12:21:06.792Z","avatar_url":"https://github.com/jaredrummler.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TrueTypeParser\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.jaredrummler/truetypeparser/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.jaredrummler/truetypeparser) [![License](http://img.shields.io/:license-apache-blue.svg)](LICENSE) [![API](https://img.shields.io/badge/API-7%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=7)\n\nTrueType Font Parser for Android based on [Apache FOP](http://xmlgraphics.apache.org/fop/).\n\nDownload\n--------\n\nDownload [the latest AAR](https://repo1.maven.org/maven2/com/jaredrummler/truetypeparser/1.0.0/truetypeparser-1.0.0.aar) or grab via Gradle:\n\n```groovy\ncompile 'com.jaredrummler:truetypeparser:1.0.0'\n```\nor Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.jaredrummler\u003c/groupId\u003e\n  \u003cartifactId\u003etruetypeparser\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n  \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nUsage\n-----\n\n```java\nTTFFile ttfFile = TTFFile.open(getAssets().open(\"fonts/your-font.ttf\"));\nString name = ttfFile.getFullName();\nString family = ttfFile.getSubFamilyName();\nint fontWeight = ttfFile.getWeightClass();\nString copyright = ttfFile.getCopyrightNotice();\nMap\u003cInteger, Map\u003cInteger, Integer\u003e\u003e kerning = ttfFile.getKerning();\n```\n\nTrueTypeParser Light\n--------------------\n\nIf you don't need to read kerning pairs consider using the light version. The light version will read the font file's name, families, weight, and notice. The method count is much smaller.\n\n```groovy\ncompile 'com.jaredrummler:truetypeparser-light:1.0.0'\n```\n\nLicense\n--------\n\n    Copyright (C) 2016 Jared Rummler\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredrummler%2Ftruetypeparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredrummler%2Ftruetypeparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredrummler%2Ftruetypeparser/lists"}