{"id":19474544,"url":"https://github.com/tomasc/dragonfly_harfbuzz","last_synced_at":"2026-06-19T07:31:08.872Z","repository":{"id":23924167,"uuid":"27304818","full_name":"tomasc/dragonfly_harfbuzz","owner":"tomasc","description":"Harfbuzz renderer wrapped by Dragonfly processors.","archived":false,"fork":false,"pushed_at":"2019-01-26T16:55:10.000Z","size":488,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-05-07T23:34:55.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/tomasc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-29T14:41:14.000Z","updated_at":"2019-01-26T16:54:51.000Z","dependencies_parsed_at":"2022-07-20T23:33:06.563Z","dependency_job_id":null,"html_url":"https://github.com/tomasc/dragonfly_harfbuzz","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/tomasc/dragonfly_harfbuzz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_harfbuzz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_harfbuzz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_harfbuzz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_harfbuzz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasc","download_url":"https://codeload.github.com/tomasc/dragonfly_harfbuzz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_harfbuzz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34522033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T19:25:34.982Z","updated_at":"2026-06-19T07:31:08.855Z","avatar_url":"https://github.com/tomasc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dragonfly Harfbuzz\n\n[![Build Status](https://travis-ci.org/tomasc/dragonfly_harfbuzz.svg)](https://travis-ci.org/tomasc/dragonfly_harfbuzz) [![Gem Version](https://badge.fury.io/rb/dragonfly_harfbuzz.svg)](http://badge.fury.io/rb/dragonfly_harfbuzz) [![Coverage Status](https://img.shields.io/coveralls/tomasc/dragonfly_harfbuzz.svg)](https://coveralls.io/r/tomasc/dragonfly_harfbuzz)\n\n[Harfbuzz](http://fontforge.github.io) renderer wrapped by [Dragonfly](http://markevans.github.io/dragonfly) processors.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'dragonfly_harfbuzz'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dragonfly_harfbuzz\n\nYou will also need Harfbuzz installed.\n\nUsing [Homebrew](http://brew.sh):\n\n    $ brew install --with-cairo harfbuzz\n\nOr build from source. See [Harfbuzz](http://harfbuzz.org) website for instructions.\n\n## Usage\n\nAdd the `:harfbuzz` plugin to your Dragonfly config block:\n\n```ruby\nDragonfly.app.configure do\n  plugin :harfbuzz\n  # ...\nend\n```\n\nThen use as:\n\n```ruby\nfont.hb_view('my text', :svg, { font_size: 36 })\n```\n\nSee tests and `hb-view --help-all` for more details on options.\n\n## Supported Formats\n\nList of supported formats is available as:\n\n```ruby\nDragonflyHarfbuzz::SUPPORTED_FORMATS # =\u003e [\"otf\"]\nDragonflyHarfbuzz::SUPPORTED_OUTPUT_FORMATS # =\u003e [\"ansi\", \"png\", \"svg\", \"pdf\", \"ps\", \"eps\"]\n```\n\n## Options\n\nAdditionally (for `\u003csvg\u003e` only) you can pass the following options: `translate: Hash[x: 0, y: 0]`, `markup_svg: Boolean`, `split_paths: Boolean` and `flatten_svg: Boolean`.\n\n`translate` translates glyph positions by specified `x` and/or `y` offset.\n\n`markup_svg` returns an `\u003csvg\u003e` that is organized into word and characters and marked up with additional data attributes.\n\n`flatten_svg` uses the result of `markup_svg` and further cleans up the `\u003csvg\u003e`, replacing the `\u003csymbol\u003e`, `\u003cuse\u003e` elements with nested `\u003csvg\u003e`s. This is handy if you want to do some more precise animation/manipulation of the resulting `\u003csvg\u003e`.\n\n`split_paths` is a feature of the `markup_svg` and controls whether the paths of each character are split up into smaller components.\n\n## Contributing\n\n1. Fork it ( https://github.com/tomasc/dragonfly_harfbuzz/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fdragonfly_harfbuzz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasc%2Fdragonfly_harfbuzz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fdragonfly_harfbuzz/lists"}