Package ilcd
Class Extra
Public Method setFontNameSuffix
static void setFontNameSuffix(String suffix)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
| Parameter |
Range |
Description |
| suffix |
up to 4 ASCII chars (0x01 .. 0xFF) |
string to be suffix |
Sets a suffix of case-sensitive string characters, which will be put after any subsequently sent font name (see Attribute.setFont(int)).
Note
- This functionality can be used to support multiple languages without conditional methods or macros. For example, if the font names for the English language are suffixed with "_en" and for the German language with "_de", the method
Attribute.setFont("font");
would select the font "font_en" or "font_de", dependent on the prior defined font prefix.
- When addressing fonts by index, an offset can be used to realize language switching. (see Extra.setFontOffset(int)).
- Remove any previously set Font Name Suffix by entering an empty string as suffix:
Extra.setFontNameSuffix("");
- The default value for suffix is an empty string. It will be automatically set to default on startup and by the methods General.resetAll() or General.rebootPanelController() if the "Extras on Reset" option on the "Settings" page of iLCD Manager XEJoC Manager is set to "Clear". Selecting "Keep" allows for using the reset methods without loosing e.g. the selected language.
Extra.setFontNameSuffix("_en");
Set the font name suffix to "_en" and will subsequently only set fonts that end with these characters.
See also:
Copyright © demmel products gmbh. All rights reserved.