pub fn symbol_code(ch: char) -> Option<u8>Expand description
The code position ch takes in the Symbol face’s legacy encoding.
The code-to-name table of StandardSymbolsPS.afm gives the positions of the characters in the
face. MathType’s Symbol face and its lower- and upper-case Greek styles draw from that font, so
an equation stream names a glyph’s position in the character record and a preview translates
the character before it looks the glyph up.
The two phis are the exception. The Adobe Glyph List maps their names phi and phi1 to
U+03C6 and U+03D5, but the face draws the straight phi ϕ at 66 and the loopy phi φ at
6A, the reverse of those names, as the face’s own outlines show. MathType draws and saves by
position, so the table follows the drawn shapes. U+2223 ∣ is the other exception: the
encoding lists no such character, but its bar at 7C draws the same vertical line, and
MathType finds a Symbol-face glyph only by the position the record names. An ASCII character
sits at its own code, which the encoding does not list. Characters outside the table have no
position in the encoding.