How can I use the character font AS and also characters from a symbol font together? Can I change to another font within a label once I'm in ASCII font ?
The command produces a label that reads:yes? label/nouser 3 2 0 0 0.15 "@AStemp_01@CA09(Centigrade_scale)"
temp_01@CA09Centigrade_scale
When we are in ASCII font, the ESCAPE character allows the character immediately following it to be recognized as a special character to PPLUS. Placing ESCAPE it in front of the @CA lets us access the map font, and a second ESCAPE character in front of another @AS changes back to ASCII font so we can use an underscore in Centigrade_scale.
yes? ! Here the ESCAPE character appears as a square. yes? label/nouser 3 2 0 0 0.15 "@AStemp_01@CA09@AS(Centigrade_scale)"
The ESCAPE character is decimal character 27, and may be entered into a script with some text editors. A trick to have easy access to the ESCAPE character is to keep it in a file. (See below the figure to get the file). Then in a Ferret session or script, read the character into a string variable, and use the Ferret STRCAT function to put it into the label string.
For Example
yes? go ptest ! just an example plot to put a user-defined label on yes? ! Define a character variable containing the ESCAPE character yes? columns/type=text/var=escchar escapeit.dat yes? ! Use STRCAT to put the character into a label yes? let mylab1 = strcat ("@AStemp_01", escchar) yes? let mylab2 = strcat (mylab1, "@CA09") yes? let mylab3 = strcat (mylab2, escchar) yes? let mylabel = strcat (mylab3, "@AS(Centigrade_scale)") yes? label/nouser 4 5 0 0 0.15 `mylabel`
For convenience, the escape character is in a file escapeit.dat, in the tar file escape_character.tar, which you may download here. escape_character.tar