XML technologies / MathML / Presentation elements / mglyph

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

Syntax

<mglyph fontfamily="..." index="..." alt="..."/>

Description

The mglyph element is provided as an extension mechanism to allow arbitrary symbols and other extended characters to be displayed. It is displayed as a specific glyph in a specific font, the values of which are determined by its attributes.

Attributes

This element accepts the nine attributes common to all token elements. In addition, it accepts the three attributes shown in the following table.

Table: Attributes of mglyph.

Attribute

Values

Default

fontfamily

string | css-fontfamily

required

index

integer

required

alt

string

required

These attributes have the following meaning:

  • fontfamily: specifies the font in which the desired glyph appears.

  • index: is an integer that specifies the position of the desired glyph in the font.

  • alt: specifies some alternative text that is displayed as a fallback if the glyph specified by the other two attributes is not found.

   

 

 

 

 

back to top