# \[BUG-12519\] Scripting character / cursor position

**URL:** <https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432>\
**Category:** Ignition Early Access\
**Created:** [February 8, 2019, 12:13am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432 "2019-02-08T00:13:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [February 8, 2019, 12:13am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/1 "2019-02-08T00:13:18Z")

</div>

Not sure if this is happening for a lot of folks.

The character cursor on the scripting tab for all components doesn’t correctly line up with its actual position. Its impossible to deal with. Its sometimes up to 2 characters off, so you cant pick or type where you want to.

The scripting console is unaffected.

Windows 10

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 8, 2019, 12:32am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/2 "2019-02-08T00:32:06Z")

</div>

Thanks, we’re tracking this internally already, this post will get updated when it’s fixed.

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [February 8, 2019, 12:49am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/3 "2019-02-08T00:49:09Z")

</div>

Thanks Kevin. It makes me want to “pour tea on computer”

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 8, 2019, 12:51am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/4 "2019-02-08T00:51:31Z")

</div>

It’s Windows only. If you have a VM with Ubuntu or something installed you can test from there.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 8, 2019, 1:14am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/5 "2019-02-08T01:14:14Z")

</div>

If you have an ISO with Ubuntu you can wipe your Windows 10 install… 😝

---

<div class="post-metadata">

**Author:** ![joe.friedrich](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe.friedrich/32/7505_2.png) [@joe.friedrich](https://forum.inductiveautomation.com/u/joe.friedrich)\
**Post date:** [February 8, 2019, 12:29pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/6 "2019-02-08T12:29:03Z")

</div>

I’ve been writing in notepad++ and copy/pasta into the scripting tab.  
However, if I owned the machine, I would implement Phil’s ‘fix’ 😁

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 9, 2019, 1:10am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/7 "2019-02-09T01:10:07Z")

</div>

We’re working on a fix for this. As a short-term workaround, you can delete the `fontconfig.properties` file, located in your .ignition cache:  
`C:\Users\pgriffith\.ignition\cache\resources\runtimes\11.0.2\conf\fonts\fontconfig.properties`  
(might be `runtimes\11.0.1`, 11.0.2 is going to be in new nightlies going forward.

---

<div class="post-metadata">

**Author:** ![joe.friedrich](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe.friedrich/32/7505_2.png) [@joe.friedrich](https://forum.inductiveautomation.com/u/joe.friedrich)\
**Post date:** [February 11, 2019, 12:58pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/8 "2019-02-11T12:58:47Z")

</div>

Worked for me.  
-No more odd spacing with ‘y’ and ‘s’ (unsure how other chars were effected).  
-All the text is in a grid, so I know where my cursor is in relation to text above and below my cursor.  
-Can tell the difference between single and double quotes easily.

I haven’t seen anything break after applying this fix. Will keep you posted.

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [February 13, 2019, 6:01pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/9 "2019-02-13T18:01:14Z")

</div>

This should be fixed in the latest nightly deployment of 8.0. You will need remove **.ignition/cache/resources/runtimes** to force the changes made to the JRE to be downloaded.

Garth

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [February 13, 2019, 6:02pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/10 "2019-02-13T18:02:15Z")

</div>



---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [February 13, 2019, 6:02pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/11 "2019-02-13T18:02:43Z")

</div>



---

<div class="post-metadata">

**Author:** ![rberghammer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rberghammer/32/7150_2.png) [@rberghammer](https://forum.inductiveautomation.com/u/rberghammer)\
**Post date:** [May 11, 2019, 5:01pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/12 "2019-05-11T17:01:59Z")

</div>

I’ve been having this same issue. I have tried downloading the latest nightly build of 8.0.2 and clearing the cache on my designer machine as suggested above. My gateway is running on Windows Server 2016. My designer is running on Windows 10.

The cursor position in the scripting window get worse the longer the line of code becomes.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [May 30, 2019, 2:08am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/13 "2019-05-30T02:08:08Z")

</div>

Try and delete C:\Users\*username\*.ignition\cache\resources\runtimes\11.0.2\conf\fonts\fontconfig.properties

The restart the designer

---

<div class="post-metadata">

**Author:** ![victor1](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@victor1](https://forum.inductiveautomation.com/u/victor1)\
**Post date:** [January 28, 2020, 4:33pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/14 "2020-01-28T16:33:48Z")

</div>

I’ve been having this same issue in 8.0.7 version.

I tried delete: **C:\Users_username_.ignition\cache\resources\runtimes\11.0.2\conf\fonts\fontconfig.properties**

And it doesnt worked. Then i tried delete the folder:  
**.ignition/cache/resources/runtimes**

I and also doesnt worked.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![Pat\_Schmidt](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@Pat\_Schmidt](https://forum.inductiveautomation.com/u/Pat_Schmidt)\
**Post date:** [April 8, 2020, 9:13pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/15 "2020-04-08T21:13:25Z")

</div>

I am also seeing this problem in 8.08

Tried deleting the fontconfig.properties file with no luck. Then tried deleting the whole .ignition folder, again with no luck.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 8, 2020, 10:25pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/16 "2020-04-08T22:25:16Z")

</div>

We’re refactoring the script editors (possibly as soon as 8.0.12) in the designer so that this problem doesn’t occur anymore. Technically, expression editors (at least for now) could still be affected, but very long expressions are a lot less common than very long scripts.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 17, 2020, 6:41pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/17 "2020-06-17T18:41:09Z")

</div>

What is the station of the release train for the new script editor ?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 17, 2020, 7:16pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/18 "2020-06-17T19:16:54Z")

</div>

Currently, waiting on the upstream library to fix a few issues before it can go into production. At least a few more releases, at this point, given the scale of what QA needs to regression test once it’s all implemented.

---

<div class="post-metadata">

**Author:** ![Bronzebeard62](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Bronzebeard62](https://forum.inductiveautomation.com/u/Bronzebeard62)\
**Post date:** [February 5, 2021, 9:52pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/19 "2021-02-05T21:52:14Z")

</div>

I’m having this issue after upgrading to a 4k display, I did not notice it when I was using 1080p. I’m using the latest 8.1.2 stable. My cursor is about two character lengths to the left when editing scripts. I tried deleting runtimes as well as the font file, no change.

---

<div class="post-metadata">

**Author:** ![Bronzebeard62](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Bronzebeard62](https://forum.inductiveautomation.com/u/Bronzebeard62)\
**Post date:** [February 8, 2021, 2:40pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/20 "2021-02-08T14:40:57Z")

</div>

Just an update, I was able to change windows scaling feature from 150% to 100% and this issue went away, however now my ignition windows are very small and hard to read. I can zoom on the script editor but not the other windows.

[Next page](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432.md?page=2)
