Use One Font For All Languages

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
4 posts • Page 1 of 1
dbindernagel
Posts: 151
Joined: Mon Feb 23, 2015 1:34 pm

Use One Font For All Languages

Post by dbindernagel »

Hello,

I'm working on a multi language project and I'm having trouble with the option "Use One Font For All Languages" in the "Format" menu of the Gedi.

Basically my desired behaviour for changing the font on an object is, that it is changed for all configured project languages to be the same and not just for the currently selected language in the Gedi.

The option "Use One Font For All Languages" seems to be just for this case but I do not understand it. It looks to me this option does nothing at all.

I made the following tests and the behaviour is the same, regardless if the option is on or off.

Code: Select all

Two languages configured in the project.

1.
Font: Arial, Regular, 10 Points
Use One Font For All Languages: TRUE

a.) Add button to panel.
    => Font is the same for all languages.
b.) Change font while first lange is selected in Gedi.
    => Font only changed for this language.
c.) Change font while second language is selected in Gedi.
    => Font only changed for this language.

2.
Font: Arial, Regular, 10 Points
Use One Font For All Languages: FALSE

a.) Add button to panel.
    => Font is the same for all languages.
b.) Change font while first lange is selected in Gedi.
    => Font only changed for this language.
c.) Change font while second language is selected in Gedi.
    => Font only changed for this language.
1. Can someone expain the use case of this option? The help is not very helpful/clear on this.
2. Is there a way to set the font of every object on a panel for all languages to be the same than the font of the currently selected language on these objects (so objects can have different fonts but it is the same for all languages).
I know of the option "Apply To All Languages", but I have to do this on each object and I would like an option to do this per panel or even project.

WinCC 3.18 P013 (but also testet on 3.19 P002)

Thank You

BR
Dennis

Edit: Ok I understand the option now. You can selected differents font in the format menu if it is off.
Is there still a way to achive to change a font for all langaues on an object without chaning it manually in all languages?

User avatar
kilianvp
Posts: 422
Joined: Fri Jan 16, 2015 10:29 am

Re: Use One Font For All Languages

Post by kilianvp »

You can use Notepad++ and do a search and replace in files.

User avatar
leoknipp
Posts: 2846
Joined: Tue Aug 24, 2010 7:28 pm

Re: Use One Font For All Languages

Post by leoknipp »

As far as I know there is no other option in GEDI to change the font for all languages.
If you want to edit a panel file in a text editor you have to be very careful, especially when using files in "pnl" format.
When you make a mistake in editing the file the panel cannot be read again in the UI.

For panels in "pnl" format: When the font string is changed, you also have to change the string length information in the panel file.

Best Regards
Leopold Knipp
Senior Support Specialist

dbindernagel
Posts: 151
Joined: Mon Feb 23, 2015 1:34 pm

Re: Use One Font For All Languages

Post by dbindernagel »

Thank you @kilianvp and @leoknipp,

I' will use a text editor and change the files this way (I have only XML files).
I was annoyed because I had to change the font on some panels in a multilanguage project and thought there must be an option to make this easier in Gedi.
But I guess there is just not the use case for this to be added to the gedi as you normally set the fonts once during creation and don't change them later.

Post Reply
4 posts • Page 1 of 1