To-Add-Superscript-and-Subscript-Definitions-to-a-Font
To Add Superscript and Subscript Definitions to a Font
This example procedure is based on the AutoCAD Romans font file, although a similar
method applies to any font. This procedure adds four new shape definitions to a font:
super_on, super_off, sub_on, and sub_off, which control the position and size of the
characters that follow. For simplicity, this example replaces the brackets characters
([ and ]) and the braces characters ({ and }) with the new characters. You may choose to replace other characters or use a shape
number in the extended range (ASCII codes 128 through 256). If you use an extended
shape number, you need to use the %%nnn method for placing the new characters (where nnn is the ASCII value of the character).
- Edit your SHP file with an ASCII text editor (for example, Notepad on Windows or TextEdit
on Mac OS). - Search for the shape definitions of the characters you are replacing. To comment out
those definitions so the new definitions can take their place, insert a semicolon
in front of each line of the shape definition. The shape definition may continue for
a number of lines.The left- and right-bracket characters have ASCII values of 91 and 93 (05B and 05D
hex values, if the font is Unicode). The left and right curly brace characters have
ASCII values of 123 and 125 (07B and 07D hex). - Add the first and second values on the second line of the definition, and divide the
total by 2 as shown in the following example:*UNIFONT,6,Extended Simplex Roman for UNICODE 21,7,2,0 21 + 7 = 28, then 28 / 2 = 14. This number is used later.
- Add the following lines to the end of the SHP file:
*91,8,super_on 2,8,(0,14),003,2,1,0 *93,8,super_off 2,004,2,8,(0,-14),1,0 *123,8,sub_on 2,8,(0,-14),003,2,1,0 *125,8,sub_off 2,004,2,8,(0,14),1,0
Notice the 14 and -14 values in the preceding lines. They are Y axis offsets for the imaginary pen. The value 14 is half the maximum height of a
character in this font, which is the correct approximation for superscripts and subscripts.
This value needs to be calculated for each font file, but you can modify it any way
you want. - Save the file.
- Use the COMPILE command to compile the SHP file.
Once the shape is compiled and an appropriate style is defined, you can access the
new pen-up and pen-down commands by entering the brackets ([ and ]) and braces ({ and }) characters. The [ (left bracket) character initiates superscript and the ] (right
bracket) character returns from superscript to normal. The { (left brace) character
initiates subscript and the } (right brace) character returns from subscript to normal.
is example procedure is based on the AutoCAD Romans font file, although a similar method applies to any font. This procedure adds four new shape …Superscript text appears half a character above the normal line, and is sometimes rendered … Tip: Use the <sub> tag to define subscript text. … font-size: smaller;Make text subscript or superscript. Select the text that you want to format as subscript or superscript. Do one of the following: On the Home tab, in the Font group, click Subscript. Or press CTRL+=. To undo the formatting, click the Subscript or Superscript button again, or repeat the keyboard shortcut.subscript or superscript is a character (number, letter or symbol) that is ( respectively) set slightly below or above the normal line of type. … Most fonts that contain superscript/subscript will have predetermined size and orientation that … Similarly, subscripts are also used frequently in mathematics to define different versions …… It's easy to make subscripts in math mode: $a_i$ . … Related: Superscript outside math mode – Werner Jun 4 '15 at 15:07 …. Alternatively, you can define a command textunderscript in the beginning of your document: …. If you use the $ text{}$ version and you have selected a different font (other than roman …font. … Type your superscripts and subscripts using textsuperscript and textsubscript respectively …… In Office's built-in equation editor you can type ^ (caret) for superscript followed by your text, and subscript is _ (underscore) followed by the text.superscript with vertical-align: super , (plus an accompanying font– size … Honestly I don't see the point in doing superscript/subscript in CSS only. … superscript/subscript is not actually a styling issue but is indicative of meaning. … If you really don't want to put this manually in the HTML I think a …to write superscripts in graph … The superscript and subscripts as well as other TeX characters are new… Computer dictionary definition for what superscript means including related links, information, and terms. … Subscript in Microsoft Word … the superscript button, which is the X2 option in the Font section of the toolbar. … How to add Word Art in Microsoft Word, Excel, and Powerpoint · View all recent updates …