https://github.com/danielgatis/go-findfont
Find system fonts through the fontconfig library (a.k.a `fc-match`).
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
Repository
Find system fonts through the fontconfig library (a.k.a `fc-match`).
Basic Info
Statistics
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
go-findfont
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
- Repositories: 37
- Profile: https://github.com/danielgatis
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
- Homepage: https://github.com/danielgatis/go-findfont
- Documentation: https://pkg.go.dev/github.com/danielgatis/go-findfont#section-documentation
- License: MIT
-
Latest release: v1.0.1
published almost 6 years ago