Skip to content

Commit

Permalink
Add SVG marker support
Browse files Browse the repository at this point in the history
Include qualified selector styles when performing styling
  • Loading branch information
SuperTXT Team committed Aug 25, 2023
1 parent 8bc6ac4 commit 6d6200c
Show file tree
Hide file tree
Showing 2 changed files with 209 additions and 111 deletions.
6 changes: 3 additions & 3 deletions font.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"image/color"
"io/ioutil"
"math"
"os/exec"
"reflect"
"sync"

Expand Down Expand Up @@ -118,10 +117,11 @@ var sysfontFinder = struct {
func FindLocalFont(name string, style FontStyle) string {
// TODO: use style to match font
// try with fc-match first
filename, err := exec.Command("fc-match", "--format=%{file}", name).Output()
// TODO: this causes a panic on Linux "panic: requested font style not found"
/*filename, err := exec.Command("fc-match", "--format=%{file}", name).Output()
if err == nil {
return string(filename)
}
}*/

// then use known font directories
sysfontFinder.m.Lock()
Expand Down
Loading

0 comments on commit 6d6200c

Please sign in to comment.