Macro Language Reference > Macros > Font > tfctrl
  
tfctrl
Description
This macro invokes the Define PseudoFont dialog box, which enables you to create a new PseudoFont control stream, of tag type .Fp. The control stream will determine the use of mappings of Unicode character ranges to Unicode character ranges in existing fonts in creating a PseudoFont for the document.
You may also elect to modify an existing control stream by including its name in the macro, in double quotes. In this case you will see the Edit PseudoFont "pseudofontctrlstreamname" dialog box.
 
PseudoFonts are available in non-Unicode builds of PTC ALD but mappings to and from character sets are limited to the normal non-Unicode character range (up to ASCII character 0xFF).
 
It should be noted that this feature has not been implemented for Maths text.
Syntax
tfctrl pseudofont_ctrl:t?
tfctrl
[no parameter]
Display the Define PseudoFont dialog box.
pseudofont_ctrl
The name of the PseudoFont control stream that you would like to create or modify, in double quotes ( ie. tfctrl "pseudofontctrlstreamname").
Additional Information
Illustrated below is a standard control stream generated from the Define PseudoFont dialog box:
shortname "jtfont"
longname "justinetaylorfont"
default_char "Times",0x41
map 65,100,"Arial",68
This describes a PseudoFont with the following characteristics:
1. PseudoFont name: jtfont
2. PseudoFont longname: justinetaylorfont - this will be displayed in the font list if the Use font long names document preference has been activated.
3. Default character defined - this character will be displayed in the text stream when formatting encounters an unmapped character.
4. The character range 65-100 (inclusive) has been mapped to Arial.
5. An optional "subfontfrom" character 68 has been defined - the map matching will originate at this character and subsequent characters in the PseudoFont range that are matched will increment from this value accordingly. Here the PseudoFont character range is 65-100 whereas the subfontfrom character is 68. PseudoFont character 65 will therefore be mapped to 68, 66 to 69 and so on until 100 is mapped to 103.
Once created, PseudoFont mappings may edited in two ways: by editing the control stream directly or via the Edit PseudoFont "pseudofontctrlstreamname" dialog box. The dialog box can be called by selecting the Document > Create/Edit PseudoFont menu option and selecting the PseudoFont to be edited from the presented list. Otherwise use the tfctrl macro plus the control stream name as detailed above.
 
A new tag type (.Fp) was implemented in version 9.1. Users of earlier versions of APP may encounter problems when attempting to read files that contain PseudoFont definitions. This will largely be encountered if the PseudoFont definitions have been saved to a .3d file and read into the document.