{"id":13413186,"url":"https://github.com/ungerik/go-cairo","last_synced_at":"2025-04-07T11:06:18.919Z","repository":{"id":4376850,"uuid":"5513553","full_name":"ungerik/go-cairo","owner":"ungerik","description":"Go binding for the cairo graphics library","archived":false,"fork":false,"pushed_at":"2024-03-04T07:57:41.000Z","size":91,"stargazers_count":148,"open_issues_count":3,"forks_count":34,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-24T23:02:17.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ungerik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-08-22T18:27:01.000Z","updated_at":"2025-03-09T18:43:34.000Z","dependencies_parsed_at":"2024-06-18T14:31:36.608Z","dependency_job_id":"d0be4ef6-8a02-41e1-b92b-ccfcacd54afe","html_url":"https://github.com/ungerik/go-cairo","commit_stats":{"total_commits":56,"total_committers":14,"mean_commits":4.0,"dds":0.3035714285714286,"last_synced_commit":"e24bd4259cefd7822ade0b7bdb22b87559af5405"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ungerik%2Fgo-cairo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ungerik%2Fgo-cairo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ungerik%2Fgo-cairo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ungerik%2Fgo-cairo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ungerik","download_url":"https://codeload.github.com/ungerik/go-cairo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640462,"owners_count":20971557,"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-07-30T20:01:34.680Z","updated_at":"2025-04-07T11:06:18.899Z","avatar_url":"https://github.com/ungerik.png","language":"Go","readme":"## go-cairo\n\n### Go binding for the cairo graphics library\n\nBased on Dethe Elza's version https://bitbucket.org/dethe/gocairo\nbut significantly extended and updated.\n\nGo specific extensions:\n* NewSurfaceFromImage(image.Image)\n* Surface.GetData() []byte\n* Surface.SetData([]byte)\n* Surface.GetImage() image.Image\n* Surface.SetImage(image.Image)\n\ngo-cairo also sports a sub package extimage with image.Image/draw.Image\nimplementations for 32 bit ARGB and 24 bit RGB color models.\n\nOverview:\n* http://go.pkgdoc.org/github.com/ungerik/go-cairo\n* http://go.pkgdoc.org/github.com/ungerik/go-cairo/extimage\n\nMissing features\n* TextCluster\n* FontExtents\n* FontFace\n* FontOptions\n* ScaledFont\n* Glyph\n\n### Installation:\n\nInstall cairo:\n\nFor Debian and Debian derivatives including Ubuntu:\n\n\tsudo apt-get install libcairo2-dev\n\nFor Fedora:\n\n\tsudo yum install cairo-devel\n\nFor openSUSE:\n\n\tzypper install cairo-devel\n\nFor Arch Linux: (also [gcc](https://archlinux.org/packages/core/x86_64/gcc/) and [pkgconf](https://archlinux.org/packages/core/x86_64/pkgconf/) are required)\n\t\n\tsudo pacman -S cairo\n\nFor MacOS you may get errors finding cairo-pdf.h. To fix this run:\n\n\txcode-select --install\n  \nInstall go-cairo and run go-cairo-example:\n\n\tgo get github.com/ungerik/go-cairo\n\tgo install github.com/ungerik/go-cairo/go-cairo-example \u0026\u0026 go-cairo-example\n\n\nCopyrights: See LICENSE file\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ungerik/go-cairo/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","funding_links":[],"categories":["Images 图像处理","Images","\u003cspan id=\"图片-images\"\u003e图片 Images\u003c/span\u003e","Go","图片","Relational Databases","图像"],"sub_categories":["SQL 查询语句构建库","Search and Analytic Databases","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","检索及分析资料库","交流"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fungerik%2Fgo-cairo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fungerik%2Fgo-cairo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fungerik%2Fgo-cairo/lists"}