On Thu, Nov 12, 2009 at 13:44, Mojca Miklavec wrote:
Hans,
When does the mapping to 0x1D44E happen for LM and Termes in mkiv? (= MATHEMATICAL ITALIC SMALL A)
Oh, I see it now. At this point: fonts.vf.math.set_letters(fonts.enc.math, "tex-mi", 0x1D434, 0x1D44E) the letters from tex-mi are copied to math italic, but in case of txfonts and the chosen subset of glyphs this region is empty, so ConTeXt most probably just falls back to "normal a" from the main regular font, but those characters should come from the italic font instead (I don't know if additional metrics are needed or not). I tried to do the following for example: fonts.enc.math["tex-mi2"] = { } -- now that all other vectors are defined ... fonts.vf.math.set_letters(fonts.enc.math, "tex-mi", 0x1D434, 0x1D44E) fonts.vf.math.set_letters(fonts.enc.math, "tex-mi2", 0x1D434, 0x1D44E) mathematics.make_font ( "tx-math", { { name = "texgyretermes-regular.otf", features = "virtualmath", main = true }, { name = "rtxr.tfm", vector = "tex-mr" } , { name = "rtxmi.tfm", vector = "tex-mi", skewchar=0x7F }, { name = "texgyretermes-italic.otf", vector = "tex-mi2", skewchar=0x7F }, { name = "txsy.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } , { name = "txex.tfm", vector = "tex-ex", extension = true } , { name = "txsya.tfm", vector = "tex-ma" }, { name = "txsyb.tfm", vector = "tex-mb" }, } ) I now get italic math (but roman h for example). So this needs to be fixed a bit, but it's the right direction at least. (Though it might be better to use generic names like "regular" or "italic" for name= in case that users try to use some other times-like base font for example.) Mojca