mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
19dc79e8e3
commit
a710bc5f41
68 files changed
+2149
-724
No files matched your search
@@ -140,8 +140,9 @@ func (r *Renderer) PositionText(object TextObject, state RenderState) (*Position
|
||||
angle := float64(object.CharDirection) * math.Pi / 180
|
||||
rotate := Matrix{a: math.Cos(angle), b: math.Sin(angle), c: -math.Sin(angle), d: math.Cos(angle)}
|
||||
glyphLinear := Matrix{a: linear.a, b: linear.b, c: linear.c, d: linear.d}.Multiply(rotate)
|
||||
for index, code := range object.TextCode {
|
||||
if object.textCodeLineBreak(index) {
|
||||
lines := newTextLineScanner(object)
|
||||
for _, code := range object.TextCode {
|
||||
if lines.next(code) {
|
||||
textOffset++
|
||||
}
|
||||
runes := textCodeRunes(code.Value)
|
||||
|
||||
Reference in new issue
Block a user