Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions fonts/OTF/TeX/makeFF
Original file line number Diff line number Diff line change
Expand Up @@ -1517,11 +1517,12 @@ $map{cmtt10} = {
0x15 => [0x306,-525,0], # \breve (combining)
0x16 => [0x304,-525,0], # \bar (combining)
0x17 => [0x30A,-525,0], # ring above (combining)
0x20 => 0x2423, # graphic representation of space

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want the actual space character it's self? \texttt{a b} in LaTeX puts a space between a and b instead of rendering a .

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the glyph at position 0x20 is a not a space. I guess LaTeX doesn't actually use space characters, because spaces are usually strecthable nonetheless, so it will insert horizontal positioning instructions into the PostScript (and later PDF) and doesn't need a character for this.

Copy link

@kevinbarabash kevinbarabash Jan 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I was hoping that cmtt would have an real space, but it sounds like that doesn't seem to be the case.


[0x21,0x7F] => 0x21,

0x27 => 2018, # left quote
0x60 => 2019, # right quote
0x27 => 0x2018, # left quote
0x60 => 0x2019, # right quote

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mapping.pl in the KaTeX repo will also have to be updated to match.

0x5E => [0x302,-525,0], # \hat (combining)
0x7E => [0x303,-525,0], # \tilde (combining)
0x7F => [0x308,-525,0], # \ddot (combining)
Expand Down