mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
1 parent
9c5ce1d66f
commit
ac198f3351
56 files changed
+3029
-825
No files matched your search
+4
-1
@@ -51,9 +51,11 @@ type Renderer struct {
|
||||
preparedFonts map[string]*PreparedFont
|
||||
fontPreparations *renderCache[[32]byte, PreparedFont]
|
||||
fontSourcesCache *fontSourceCache
|
||||
fontMetrics renderCache[[32]byte, FontMetrics]
|
||||
fontMetrics *renderCache[[32]byte, FontMetrics]
|
||||
glyphOutlines renderCache[glyphOutlineKey, GeometryPath]
|
||||
renderError error
|
||||
patternReferences map[*Pattern]bool
|
||||
patternPage *Matrix
|
||||
TransparentBackground bool
|
||||
}
|
||||
|
||||
@@ -100,6 +102,7 @@ func (r *Renderer) childRenderer(reader *Reader) *Renderer {
|
||||
renderer := NewRenderer(reader, opts...)
|
||||
renderer.sharedBackendStates = r.sharedBackendStates
|
||||
renderer.fontPreparations = r.fontPreparations
|
||||
renderer.fontMetrics = r.fontMetrics
|
||||
renderer.decodeImages = r.decodeImages
|
||||
renderer.TransparentBackground = r.TransparentBackground
|
||||
return renderer
|
||||
|
||||
Reference in new issue
Block a user