mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 09:37:26 +08:00
1 parent
9b38f6f039
commit
444c01b976
6 files changed
+42
-42
No files matched your search
@@ -229,7 +229,7 @@ func (e *Editor) RewriteText(obj *TextObject, value string) error {
|
||||
unit *= obj.HScale
|
||||
}
|
||||
advance := func(char rune) float64 { return float64(sfnt.GlyphAdvance(sfnt.GlyphIndex(char))) * unit }
|
||||
if codes[i].DeltaX != "" || codes[i].DeltaY == "" {
|
||||
if codes[i].DeltaX != "" {
|
||||
codes[i].DeltaX = rewriteTextDeltas(codes[i].DeltaX, runes, replacement, from, to, advance)
|
||||
}
|
||||
if codes[i].DeltaY != "" {
|
||||
|
||||
Reference in new issue
Block a user