StoreCenter Help : Online Editor : Variable Actions Samples : Switch between oldstyle and lining typefaces for numerals
Switch between oldstyle and lining typefaces for numerals
Some typefaces include two different styles for numerals: oldstyle and lining. You choose the style by typing either upper case or lower case numbers. If the regular lower case numbers are used, oldstyle numbers are displayed. If upper case numbers are used, then the numbers are lined.
The action below explains how you can make sure the address on a business card uses both upper and lower case characters for the street name but only upper case characters for all numbers.
Create two variables for handling the address. The first variable is a long string type variable. In the script below it is called fcmaddress_INPUT. This variable is to enter an address in the form. The second variable is called fcmaddress and it is of the type Calculated Field. This variable is set to be invisible in the form because it is used to insert the correctly styled address in the business card.
Define a Value Action for the fcmaddress variable.
Action code:
doc. version 6.0.4