Bug: Imported Screens lose font information

mbowdich
Posts: 209
Joined: Tue Oct 05, 2010 10:54 am

Bug: Imported Screens lose font information

Post by mbowdich » Tue Jan 25, 2011 12:48 pm

When exporting a screen and importing it into another configuration, all fonts are set back to default. I looked in the xml file, and it does show different font groups.

I also made a new configuration and named the font groups the same. After exporting, the font groups in the xml file are different for the same fonts / fontgroup as used in the original configuration.
jpratt
Enovation Controls Development
Enovation Controls Development
Posts: 222
Joined: Mon Jun 21, 2010 11:18 am

Re: Bug: Imported Screens lose font information

Post by jpratt » Wed Jan 26, 2011 9:25 am

Just to clarify. When you exported from the second configuration the name of the font group doesn't match what you selected on the screen?
Jake Pratt
Software Development Manager
jpratt
Enovation Controls Development
Enovation Controls Development
Posts: 222
Joined: Mon Jun 21, 2010 11:18 am

Re: Bug: Imported Screens lose font information

Post by jpratt » Wed Jan 26, 2011 10:34 am

I looked into this a bit more. Currently when you export gauges, we do not export the font groups but instead export the internal key (unlike variables etc). If you re-import the gauges in the new configuration it will only be able to import the font group if they have same key (not likely if you created the configurations at different times.

I will log this as an issue to fix in a future release. As a work around (although not a simple one) You can export a gauge from your new configuration to find out the font group key of the font group you want to use and edit the export (search and replace the original key with the new key) before importing the font group into the new configuration. I have to admit that it may be easier to just change them in the destination.
Jake Pratt
Software Development Manager
mbowdich
Posts: 209
Joined: Tue Oct 05, 2010 10:54 am

Re: Bug: Imported Screens lose font information

Post by mbowdich » Fri Jan 28, 2011 7:12 am

Thanks Jake.

For some of the screens, the search and replace in the xml file will be much faster.