XmHTML: Sample Font Map Definition
Author: Koen D'Hondt

## Sample of a Custom Font Map Definition

Users of XmHTML can define their own font mappings by providing a document containing various combinations of fonts in different styles and sizes. The document shown below is a typical example of such a font map definition.

Note that it should be a valid HTML document. It does not need to contain any visible text however.

## custom_map.html

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
    <html>
    <head>
    	<META NAME="Author" CONTENT="Koen D'Hondt">
    	<META HTTP-EQUIV="Description" CONTENT="XmHTML font mapping.">
    </head>
    <body>

    <!--
    	Sample font map definition
     -->

    <!-- various forms of helvetica -->

    <!-- verdana is helvetica on macintosh -->

    <!-- all possible sizes, plain style -->
    <font face="verdana,helvetica" size="1"></font>
    <font face="verdana,helvetica" size="2"></font>
    <font face="verdana,helvetica" size="3"></font>
    <font face="verdana,helvetica" size="4"></font>
    <font face="verdana,helvetica" size="5"></font>
    <font face="verdana,helvetica" size="6"></font>
    <font face="verdana,helvetica" size="7"></font>

    <!-- all possible sizes, bold style -->
    <b><font face="verdana,helvetica" size="1"></font></b>
    <b><font face="verdana,helvetica" size="2"></font></b>
    <b><font face="verdana,helvetica" size="3"></font></b>
    <b><font face="verdana,helvetica" size="4"></font></b>
    <b><font face="verdana,helvetica" size="5"></font></b>
    <b><font face="verdana,helvetica" size="6"></font></b>
    <b><font face="verdana,helvetica" size="7"></font></b>

    <!-- all possible sizes, italic style -->
    <i><font face="verdana,helvetica" size="1"></font></i>
    <i><font face="verdana,helvetica" size="2"></font></i>
    <i><font face="verdana,helvetica" size="3"></font></i>
    <i><font face="verdana,helvetica" size="4"></font></i>
    <i><font face="verdana,helvetica" size="5"></font></i>
    <i><font face="verdana,helvetica" size="6"></font></i>
    <i><font face="verdana,helvetica" size="7"></font></i>

    <!-- all possible sizes, bold-italic style -->
    <b><i><font face="verdana,helvetica" size="1"></font></i></b>
    <b><i><font face="verdana,helvetica" size="2"></font></i></b>
    <b><i><font face="verdana,helvetica" size="3"></font></i></b>
    <b><i><font face="verdana,helvetica" size="4"></font></i></b>
    <b><i><font face="verdana,helvetica" size="5"></font></i></b>
    <b><i><font face="verdana,helvetica" size="6"></font></i></b>
    <b><i><font face="verdana,helvetica" size="7"></font></i></b>

    <!-- arial is helvetica on ms-windows -->

    <!-- all possible sizes, plain style -->
    <font face="arial,helvetica" size="1"></font>
    <font face="arial,helvetica" size="2"></font>
    <font face="arial,helvetica" size="3"></font>
    <font face="arial,helvetica" size="4"></font>
    <font face="arial,helvetica" size="5"></font>
    <font face="arial,helvetica" size="6"></font>
    <font face="arial,helvetica" size="7"></font>

    <!-- all possible sizes, bold style -->
    <b><font face="arial,helvetica" size="1"></font></b>
    <b><font face="arial,helvetica" size="2"></font></b>
    <b><font face="arial,helvetica" size="3"></font></b>
    <b><font face="arial,helvetica" size="4"></font></b>
    <b><font face="arial,helvetica" size="5"></font></b>
    <b><font face="arial,helvetica" size="6"></font></b>
    <b><font face="arial,helvetica" size="7"></font></b>

    <!-- all possible sizes, italic style -->
    <i><font face="arial,helvetica" size="1"></font></i>
    <i><font face="arial,helvetica" size="2"></font></i>
    <i><font face="arial,helvetica" size="3"></font></i>
    <i><font face="arial,helvetica" size="4"></font></i>
    <i><font face="arial,helvetica" size="5"></font></i>
    <i><font face="arial,helvetica" size="6"></font></i>
    <i><font face="arial,helvetica" size="7"></font></i>

    <!-- all possible sizes, bold-italic style -->
    <b><i><font face="arial,helvetica" size="1"></font></i></b>
    <b><i><font face="arial,helvetica" size="2"></font></i></b>
    <b><i><font face="arial,helvetica" size="3"></font></i></b>
    <b><i><font face="arial,helvetica" size="4"></font></i></b>
    <b><i><font face="arial,helvetica" size="5"></font></i></b>
    <b><i><font face="arial,helvetica" size="6"></font></i></b>
    <b><i><font face="arial,helvetica" size="7"></font></i></b>

    <!-- Inform ourselves that we have finished loading the font map -->
    Default font map loaded.

    </body>
    </html>