Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/tdewolff/canvas

go 1.24.1
go 1.24.2

require (
fyne.io/fyne/v2 v2.5.5
Expand Down Expand Up @@ -60,11 +60,12 @@ require (
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rymdport/portal v0.4.1 // indirect
github.com/srwiley/scanFT v0.0.0-20220128184157-0d1ee492111f // indirect
go.mongodb.org/mongo-driver v1.17.3 // indirect
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect
golang.org/x/exp/shiny v0.0.0-20250305212735-054e65f0b394 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
modernc.org/knuth v0.5.4 // indirect
modernc.org/token v1.1.0 // indirect
)

require (
Expand All @@ -76,5 +77,5 @@ require (
golang.org/x/mobile v0.0.0-20250305212854-3a7bc9f8a4de // indirect
golang.org/x/net v0.37.0
golang.org/x/sys v0.31.0 // indirect
star-tex.org/x/tex v0.5.0
star-tex.org/x/tex v0.6.0
)
10 changes: 8 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tdewolff/argp v0.0.0-20250314085407-8f72444d274a h1:OxjSOaXFsOdOcd1TfhTLJ2manYje+mvrvz/It4nkq7s=
github.com/tdewolff/argp v0.0.0-20250314085407-8f72444d274a/go.mod h1:QtG24A8hnW/b0wUwtsB+YOIj7I2sDo4b3RomLk9wRvA=
github.com/tdewolff/canvas v0.0.0-20250209140343-015076d8ff76 h1:pcM3MNDASC6FAXtTebNyF3KDW2Wi8j8I1aGN9i41esk=
github.com/tdewolff/canvas v0.0.0-20250209140343-015076d8ff76/go.mod h1:p+JBWkp4FRY7OkTIP05jH4iLu8NzH9IJ7GUg1w0xwo0=
github.com/tdewolff/font v0.0.0-20250314092958-e0eef3f68b08 h1:Y3N6Ybcu0KjE/PQz0FDHccNvWFXsgSUmlLzPQ0HNRSw=
github.com/tdewolff/font v0.0.0-20250314092958-e0eef3f68b08/go.mod h1:UMXcYUtuwlB+zTaaOo6HyckTN7ubt4MF5eR16xKIT+s=
github.com/tdewolff/minify/v2 v2.22.1 h1:dm7uwLdE6TFQp+P6vQhD5gEsy183cpMPMRK873m1v+E=
Expand Down Expand Up @@ -298,7 +300,11 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las=
modernc.org/knuth v0.5.4 h1:F8mDs7ME3oN9eyx01n6/xVmJ4F5U/qEhSYPnPXaZrps=
modernc.org/knuth v0.5.4/go.mod h1:e5SBb35HQBj2aFwbBO3ClPcViLY3Wi0LzaOd7c/3qMk=
modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y=
modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
rsc.io/pdf v0.1.1 h1:k1MczvYDUvJBe93bYd7wrZLLUEcLZAuF824/I4e5Xr4=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
star-tex.org/x/tex v0.5.0 h1:KXxY58YioX9kLvjEzIl61JH4IvWob3FSQQ5DiU3RQ3M=
star-tex.org/x/tex v0.5.0/go.mod h1:k7py0yK2wZM4aJSgN1RonpvnxgEgIqC0i/x7kKR9GZI=
star-tex.org/x/tex v0.6.0 h1:ZD/4082kR5+2gFzFNgRvZBMCGuXrQWp3hNo5W5LmCeI=
star-tex.org/x/tex v0.6.0/go.mod h1:wJWeUmM2d4qH/mCtMOcioNl2sluKx85mLi+Yv9Nq4Ms=
5 changes: 4 additions & 1 deletion latex.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ func ParseLaTeX(formula string) (*Path, error) {
r := strings.NewReader(fmt.Sprintf(`%s $%s$`, preamble, formula))
w := &bytes.Buffer{}
stdout := &bytes.Buffer{}
engine := tex.NewEngine(stdout, bytes.NewReader([]byte{}))
engine := tex.New()
engine.Stderr = stdout
engine.Stdout = stdout
engine.Stdin = bytes.NewReader([]byte{})
if err := engine.Process(w, r); err != nil {
fmt.Println(stdout.String())
return nil, err
Expand Down
4 changes: 2 additions & 2 deletions tests/latex/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/tdewolff/fuzz/canvas/latex

go 1.13
go 1.24.2

replace github.com/tdewolff/canvas => ../../../canvas

require github.com/tdewolff/canvas v0.0.0-20191107003658-ca9baad04219
require github.com/tdewolff/canvas v0.0.0-20250209140343-015076d8ff76
Loading