{"id":32416054,"url":"https://github.com/a-ludi/printed-text","last_synced_at":"2026-02-21T22:03:04.340Z","repository":{"id":64217982,"uuid":"387525876","full_name":"a-ludi/printed-text","owner":"a-ludi","description":"Text layout engine on top of `printed` graphics package.","archived":false,"fork":false,"pushed_at":"2022-12-05T14:15:26.000Z","size":1150,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-25T15:52:36.489Z","etag":null,"topics":["pdf","svg","text-layout"],"latest_commit_sha":null,"homepage":"","language":"D","has_issues":true,"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/a-ludi.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":"2021-07-19T16:19:19.000Z","updated_at":"2022-12-05T14:15:32.000Z","dependencies_parsed_at":"2023-01-15T05:15:19.140Z","dependency_job_id":null,"html_url":"https://github.com/a-ludi/printed-text","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/a-ludi/printed-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ludi%2Fprinted-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ludi%2Fprinted-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ludi%2Fprinted-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ludi%2Fprinted-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-ludi","download_url":"https://codeload.github.com/a-ludi/printed-text/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ludi%2Fprinted-text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29694795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["pdf","svg","text-layout"],"created_at":"2025-10-25T15:52:11.569Z","updated_at":"2026-02-21T22:03:04.335Z","avatar_url":"https://github.com/a-ludi.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"`printed-text`\n==============\n\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat)](https://github.com/RichardLitt/standard-readme)\n![GitHub](https://img.shields.io/github/license/a-ludi/printed-text)\n[![DUB](https://img.shields.io/dub/v/printed-text)](https://code.dlang.org/packages/printed-text)\n\n\u003e Text layout engine on top of `printed` graphics package.\n\n`printed-text` provides a text layout engine on top of the graphics context API of `printed` for creating text documents in PDF, HTML or SVG format. It is intended to provide a barebones and extensible API.\n\n\nTable of Contents\n-----------------\n\n- [Install](#install)\n- [Usage](#usage)\n- [Maintainer](#maintainer)\n- [Contributing](#contributing)\n- [License](#license)\n\n\nInstall\n-------\n\nWith `dub add printed-text`.\n\nWith `dub.sdl`:\n\n```sdl\ndependency \"printed-text\" version=\"\u003e=0.0.0\"\n```\n\nWith `dub.json`:\n\n```json\n\"dependencies\": { \"printed-text\": \"\u003e=0.0.0\" }\n```\n\n\nUsage\n-----\n\nHere is a minimal example. More examples can be found under\n[`docs/examples`](./docs/examples).\n\n```d\nimport printed.canvas;\nimport printed.text;\n\nvoid loremIpsum(IRenderingContext2D renderer, ITextLayouter textLayouter)\n{\n    with (textLayouter)\n    {\n        textWidth = 150f; //mm\n        fontFace = \"Arial\";\n        fontSize = 10f; //pt\n\n        textLayouter.group({\n            fontSize = 16f; //pt\n            fontWeight = FontWeight.bold;\n            write(\"Lorem Ipsum\\n\");\n        });\n        write(\"\\n\")\n        write(\"Lorem ipsum dolor sit amet.\");\n        foreach (block; layout())\n            block.renderWith(renderer);\n    }\n}\n```\n\n\nMaintainer\n----------\n\n`printed-text` is being developed by Arne Ludwig \u0026lt;\u003carne.ludwig@posteo.de\u003e\u0026gt;.\n\n\nContributing\n------------\n\nContributions are warmly welcome. Just create an [issue][gh-issues] or [pull request][gh-pr] on GitHub. If you submit a pull request please make sure that:\n\n- the code compiles on Linux using the current release of [dmd][dmd-download],\n- your code is covered with unit tests (if feasible) and\n- `dub test` runs successfully.\n\n[gh-issues]: https://github.com/a-ludi/printed-text/issues\n[gh-pr]: https://github.com/a-ludi/printed-text/pulls\n[dmd-download]: https://dlang.org/download.html#dmd\n\n\nLicense\n-------\n\nThis project is licensed under MIT License (see [LICENSE](./LICENSE)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-ludi%2Fprinted-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-ludi%2Fprinted-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-ludi%2Fprinted-text/lists"}