{"id":13995342,"url":"https://github.com/krzyzanowskim/CoreTextSwift","last_synced_at":"2025-07-22T21:32:36.279Z","repository":{"id":43489897,"uuid":"272092081","full_name":"krzyzanowskim/CoreTextSwift","owner":"krzyzanowskim","description":"CoreText Swift bindings","archived":false,"fork":false,"pushed_at":"2024-06-23T22:04:59.000Z","size":28,"stargazers_count":165,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-03T13:24:34.344Z","etag":null,"topics":["coretext","ios","macos","swift","text-processing"],"latest_commit_sha":null,"homepage":"https://swift.best","language":"Swift","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krzyzanowskim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2020-06-13T21:58:12.000Z","updated_at":"2025-06-10T15:37:24.000Z","dependencies_parsed_at":"2025-04-19T09:20:41.675Z","dependency_job_id":"bd8e2d3a-eb87-4857-8dec-99cef6282e64","html_url":"https://github.com/krzyzanowskim/CoreTextSwift","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/krzyzanowskim/CoreTextSwift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FCoreTextSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FCoreTextSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FCoreTextSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FCoreTextSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krzyzanowskim","download_url":"https://codeload.github.com/krzyzanowskim/CoreTextSwift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FCoreTextSwift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264979795,"owners_count":23692497,"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":["coretext","ios","macos","swift","text-processing"],"created_at":"2024-08-09T14:03:21.436Z","updated_at":"2025-07-22T21:32:35.973Z","avatar_url":"https://github.com/krzyzanowskim.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# CoreTextSwift\n\nSwifty CoreText API.\n\nCoreText is C API. This library is a set of wrappers and extensions that makes it convenient to work with Swift.\n\n## Example\n\nDraw line in currect graphics context\n\n```swift\nguard let ctx = UIGraphicsGetCurrentContext() else {\n  return\n}\n\nlet attributedString = NSAttributedString(string: \"abcdefgh\")\nctx.draw(attributedString.line())\n```\n\nUse Glyph Run\n\n```swift\nlet attributedString = NSAttributedString(string: \"abcdefgh\")\n\nfor run in attributedString.line().glyphRuns() {\n  let font = run.font\n  for glyph in run.glyphs() {\n    let glyphPath = font.path(for: glyph)\n  }\n}\n```\n\nDraw Glyph Run to CGContext\n\n```swift\nguard let ctx = UIGraphicsGetCurrentContext() else {\n  return\n}\n\nfor run in attributedString.line().glyphRuns() {\n  run.draw(in: ctx)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzyzanowskim%2FCoreTextSwift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrzyzanowskim%2FCoreTextSwift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzyzanowskim%2FCoreTextSwift/lists"}