Description
This tag applies a font by its GN4 serial number.
Note: a font with the specified number must exist in the list of GN4 fonts, otherwise, a justification error is raised.
Parameters and typographical expressions
1.Font serial number. A positive integer, or a typographical expression that results in such a number, in the range of 1 and 32767. Must exist in the list of GN4 fonts.
Tag Effects
Effects are visible in the WYSIWYG pane of the Articles main tab or on a page on the Pages main tab. Also, it is visible in the source pane of the Text Editor Ted4 if the Use video fonts box in the Preferences dialog box of the Text Editor Ted4 is checked, or in the source pane of the Page Editor Fred4 if the same box is checked in the Ted4 Preferences dialog box in the Page Editor Fred4.
Type and scope
Can be inserted anywhere in text. Local for the paragraph where is inserted, therefore effects cease on the end of that paragraph. May be globalized, by appending the >default< tag after, but only before any printable character.
See also
>f 9011< apply the font, numbered in GN4 as 9011, from the insertion point till the end of the current paragraph or another >f < command. >f 9011<>default< apply the font, numbered in GN4 as 9011, from the insertion point till the end of the current text, except in parts that are formatted by other >f..< tags or styles that contain it. >sav<>f 9011< apply the font, numbered in GN4 as 9011, from the insertion point till the end of the current paragraph or the first >res< command, or another >f < command. >f F+2< apply the font whose serial number in GN4 is greater for 2 than the actual value. Valid only if the font numbered as F+2 exists in the list of GN4 fonts. |
You can review and set font in the Character palette. |
The system script ToggleTextPanel toggles the palette. |
You can get and set the font by the TextStatus object. To get the font code: dim objTS = Text.GetTextStatus if objTS.HasFontCode then iCurFont = objTS.FontCode end if To set the font code: dim objTS = Text.GetTextStatus objTS.FontCode = 9011 Text.SetTextStatus (objTs) Note: if no text is selected when you set the font code with the above method, the tags are not inserted in the text unless you type something. To browse fonts, set the browse sequence (as an individual preference), select Browse fonts, and then use the ALT+right arrow/left arrow keys. |