Tip  --  Using A Non-Amulet Sans Serif Font

This tip demonstrates how to use the Amulet Font Converter to convert any Windows True Type or bitmap font into an Amulet font file.

A FONT Refresher
Prior to Amulet software version 2.2, the Amulet HTMLCompiler disregarded the FACE attribute of the FONT  tag. Now, you can use the FACE attribute to specify a Windows based font. For example, to use the Arial font, size 4 (14 pt) on a string, use the following:
< FONT  FACE=" Arial" SIZE=" 4" > Hello, World< /FONT>

where:
FACE=" Arial" sets the font face and SIZE=" 4" specifies the font size between 1 and 7(7 is the largest).

Before compiling a HTML page which uses a non-Amulet Sans Serif font, you will need to convert the font into an Amulet font file using the Amulet Font Converter.

The Example
The HTML page in Figure 1 (" Font.htm" ) defines two FONT tags. The FONT tag which will be examined in this example is the first FONT tag. Note that the FONT tag uses

< FONT SIZE=" 5" FACE=" Amulet Sans Serif" > Hello, World!< /FONT> to set the font face to Amulet Sans Serif with a font size of 5 (18 pt).


Figure 1.

Step 1
Replace the font size and font name of the example above to a font size of " 7" (36 pt.) having a font name of " Monotype Corsiva" . Note that the FONT tag now reads

< FONT SIZE=" 7" FACE=" Monotype Corsiva" > Hello, World!< /FONT> . The HTML page in Figure 2 (" FontMC.htm" ) shows what the text looks like when viewed in a drag-n-drop HTML  editor after the font name and size changes.


Figure 2.

Step 2
Prior to compiling " FontMC.htm" , you need to convert the Monotype Corsiva font into an Amulet font file using the Amulet Font Converter. Launch the Amulet Font Converter. Click on File -> Load Font... and then select the Font, Font style and Size which is being used in the HTML page. Click on the OK button once the appropriate selections have been made. Figure 3 shows what the selections look like based on the font attributes of the first FONT  tag used in FontMC.htm.


Figure 3.

Step 3
Now save the font by clicking on File -> Save AmuletFont... and save the file as an Amulet Font file (.amf). In order for the Amulet HTMLCompiler to compile correctly, the font name, size and style must match what was used in the HTML page. The Amulet Font Converter saves the .amf file in the Configuration/Fonts folder in the Amulet sub-directory.

If the HTML font does not exactly match the converted AmuletFont, or if the .amf file is not located in the Configuration/Fonts folder, then the compiler will display a compilation error.

Download this Demo
  FontCvrtTip.zip
  Last Updated: July 11, 2002

Amulet Tip Archive
Amulet Tips


© 2003-2005 Amulet Technologies. U.S. and Foreign Patents Pending.
µ HTML is a Trademark of Amulet Technologies