mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
This commit is contained in:
1 parent
e9d9ba0add
commit
cfcf1939d1
9 files changed
+503
-99
No files matched your search
@@ -198,7 +198,10 @@ func (r *Renderer) renderText(ctx *canvas.Context, obj TextObject, pageH float64
|
||||
}
|
||||
codePos := 0
|
||||
textPos := 0
|
||||
for _, tc := range obj.TextCode {
|
||||
for index, tc := range obj.TextCode {
|
||||
if textRun != nil && obj.textCodeLineBreak(index) {
|
||||
textPos++
|
||||
}
|
||||
var runes []rune
|
||||
var glyphs []textGlyph
|
||||
if tc.Index != "" {
|
||||
|
||||
Reference in new issue
Block a user