mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 09:37:26 +08:00
1 parent
c8c5ce2cfc
commit
8a68014262
4 files changed
+48
-1
No files matched your search
@@ -148,7 +148,7 @@ func (r *Renderer) renderText(ctx *canvas.Context, obj TextObject, pageH float64
|
||||
var glyphPath *canvas.Path
|
||||
var glyphWidth float64
|
||||
if drawAsGlyphPath {
|
||||
glyphPath, glyphWidth = textGlyphPath(face, glyph)
|
||||
glyphPath, glyphWidth = r.cachedTextGlyphPath(face, glyph)
|
||||
} else {
|
||||
glyphWidth = textGlyphWidth(face, glyph)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user