{"id":18663381,"url":"https://github.com/juliagraphics/fontconfig.jl","last_synced_at":"2025-11-06T08:30:21.015Z","repository":{"id":17851793,"uuid":"20771899","full_name":"JuliaGraphics/Fontconfig.jl","owner":"JuliaGraphics","description":"Basic Julia bindings for fontconfig","archived":false,"fork":false,"pushed_at":"2023-01-31T16:06:00.000Z","size":55,"stargazers_count":8,"open_issues_count":3,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-20T18:22:28.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/JuliaGraphics.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}},"created_at":"2014-06-12T15:08:51.000Z","updated_at":"2024-04-28T01:27:17.000Z","dependencies_parsed_at":"2023-02-18T02:15:17.653Z","dependency_job_id":null,"html_url":"https://github.com/JuliaGraphics/Fontconfig.jl","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FFontconfig.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FFontconfig.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FFontconfig.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FFontconfig.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaGraphics","download_url":"https://codeload.github.com/JuliaGraphics/Fontconfig.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239487580,"owners_count":19647018,"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-07T08:16:42.219Z","updated_at":"2025-11-06T08:30:20.638Z","avatar_url":"https://github.com/JuliaGraphics.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fontconfig\n\n[![Build Status](https://travis-ci.org/JuliaGraphics/Fontconfig.jl.svg?branch=master)](https://travis-ci.org/JuliaGraphics/Fontconfig.jl)\n[![Build status](https://ci.appveyor.com/api/projects/status/swy9jacgux1nveo0/branch/master?svg=true)](https://ci.appveyor.com/project/SimonDanisch/fontconfig-jl-4rmrs/branch/master)\n\n\n\nFontconfig.jl provides basic binding to [fontconfig](http://www.freedesktop.org/wiki/Software/fontconfig/).\n\n\n# Pattern\n\n`Pattern` corresponds to the fontconfig type `FcPattern`. It respresents a set\nof font properties used to match specific fonts.\n\nIt can be constructed in two ways. First with zero or more keyword arguments\ncorresponding to fontconfig font properties.\n\n```julia\nFontconfig.Pattern(; args...)\n```\n\nFor example\n```julia\nFontconfig.Pattern(family=\"Helvetica\", size=10, hinting=true)\n```\n\nSecondly, it can be constructed with a fontconfig specifications string\n```julia\nFontconfig.Pattern(name::String)\n```\n\nFor example\n```julia\nFontconfig.Pattern(\"Helvetica-10\")\n```\n\n# Match\n\nThe primary functionality fontconfig provides is matching font patterns. In\nFontconfig.jl this is done with the `match` function, corresponding to `FcMatch`\nin fontconfig.\n```julia\nmatch(pat::Pattern)\n```\n\nIt takes a `Pattern` and return a `Pattern` corresponding to the nearest\nmatching installed font.\n\n\n# Format\n\nExtracting property values from a `Pattern` can be done with the `format`\nfunction, which wraps `FcPatternFormat`.\n\n```julia\nformat(pat::Pattern, fmt::String=\"%{=fclist}\")\n```\n\nSee `man FcPatternFormat` for the format string specification.\n\n\n# List\n\nFontconfig also provides a function `list` to enumerate all installed\nfonts. Optionally, a `Pattern` can be provided to list just matching fonts. The\nfunction will return a vector of `Pattern`s\n\n```julia\nlist(pat::Pattern=Pattern())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliagraphics%2Ffontconfig.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliagraphics%2Ffontconfig.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliagraphics%2Ffontconfig.jl/lists"}