There are many questions about import symbols form other packages to use them in math mode. But there is nothing about import symbols (letters) from other font families and use them in the text.

In particular, I was wondering if I can import single character to use it in a particular shape. For example, if I can import the italic z from Times New Roman and use it with the TeX Gyre Termes font. Or another example: I don't like the italic f from the millennial package and I want to replace it from the italic f of computer modern font. In this case I would also replace the symbols fi, ff and ffi to get the correct ligatures.

My question is: is it possible? For example, from this question I know I can change the z used in the math mode with the code \AtBeginDocument{\mathcode'v=\varv}. Is there something similar for text? For example something like \AtBeginDocument{\textitaliccode'z=\varz}?


  • 2
    It is possible to make “combo fonts” with LuaTeX.
    – egreg
    Jan 1 '19 at 21:59
  • in luatex yes as you can make virtual fonts on the fly but for classic tex or xetex, you would need to make a virtual font from the two base fonts, otherwise any code would be equivalent to \textsf{z}oo but the font change woul dbreak any inter-letter kerns and disable hyphenation. Jan 1 '19 at 22:04
  • You say LuaTeX. Is the same option avaible for LuaLaTeX? I say this because I suppose it would be closer to the usual pdfLaTeX or XeLaTeX.
    – Dog_69
    Jan 1 '19 at 22:14
  • 1
  • 1
    @Dog_69 See Ulrike Fischer’s solution.
    – Davislor
    Jan 2 '19 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.