diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-12-07 12:49:53 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-12-07 16:53:02 +0100 |
commit | e71d715b9b0c55aea7ef4fc88642eecd6e7b58c3 (patch) | |
tree | 1cd92998eb1c72ea11d1764025f4414787b90fa7 /common/hugio/readers.go | |
parent | e61cdf335f9d102621c37d0d366da61afa698c99 (diff) |
Add custom font support to images.Text
Fixes #9253
Diffstat (limited to 'common/hugio/readers.go')
-rw-r--r-- | common/hugio/readers.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/hugio/readers.go b/common/hugio/readers.go index c93e05e86..60bd97992 100644 --- a/common/hugio/readers.go +++ b/common/hugio/readers.go @@ -31,6 +31,11 @@ type ReadSeekCloser interface { io.Closer } +// ReadSeekCloserProvider provides a ReadSeekCloser. +type ReadSeekCloserProvider interface { + ReadSeekCloser() (ReadSeekCloser, error) +} + // ReadSeekerNoOpCloser implements ReadSeekCloser by doing nothing in Close. // TODO(bep) rename this and similar to ReadSeekerNopCloser, naming used in stdlib, which kind of makes sense. type ReadSeekerNoOpCloser struct { |