https://github.com/danielgatis/go-findfont

Find system fonts through the fontconfig library (a.k.a `fc-match`).

https://github.com/danielgatis/go-findfont

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.2%) to scientific vocabulary

Keywords

font fontconfig fontconfig-library fonts go golang
Last synced: 6 months ago · JSON representation

Repository

Find system fonts through the fontconfig library (a.k.a `fc-match`).

Basic Info
  • Host: GitHub
  • Owner: danielgatis
  • License: mit
  • Language: Go
  • Default Branch: master
  • Homepage:
  • Size: 6.84 KB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
font fontconfig fontconfig-library fonts go golang
Created almost 6 years ago · Last pushed over 5 years ago
Metadata Files
Readme License

README.md

go-findfont

Go Report Card License MIT Go Doc

Find system fonts through the fontconfig library (a.k.a fc-match)

Install

bash go get -u github.com/danielgatis/go-findfont

And then import the package in your code:

go import "github.com/danielgatis/go-findfont/findfont"

Example

An example described below is one of the use cases.

```go package main

import ( "fmt" "os"

"github.com/danielgatis/go-findfont/findfont"

)

func main() { fonts, err := findfont.Find("Emoji", findfont.FontRegular)

if err != nil {
    fmt.Printf("Err: %v", err)
    os.Exit(1)
}

for _, f := range fonts {
    fmt.Printf("Family: %v\nStyle : %v\nPath  : %v\n\n", f[0], f[1], f[2])
}

} ```

``` ❯ go run main.go Family: Apple Color Emoji Style : Regular,標準體,Ordinær,Normal,Normaali,Regolare,レギュラー,일반체,Regulier,Обычный,常规体,عادي Path : /System/Library/Fonts/Apple Color Emoji.ttc

Family: Twitter Color Emoji Style : Regular Path : /Users/daniel/Library/Fonts/TwitterColorEmoji-SVGinOT.ttf

Family: .LastResort Style : Regular Path : /System/Library/Fonts/LastResort.otf ```

License

Copyright (c) 2020-present Daniel Gatis

Licensed under MIT License

Owner

  • Name: Daniel Gatis
  • Login: danielgatis
  • Kind: user
  • Location: Recife - PE

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 1
  • Total dependent repositories: 1
  • Total versions: 2
proxy.golang.org: github.com/danielgatis/go-findfont
  • Versions: 2
  • Dependent Packages: 1
  • Dependent Repositories: 1
Rankings
Dependent repos count: 4.7%
Dependent packages count: 5.8%
Average: 11.0%
Stargazers count: 14.6%
Forks count: 18.9%
Last synced: 6 months ago