title: If you can dynamically change the font in the terminal like you can with CSS
body: <p>I have seen these two questions:</p>
  
  <ul>
  <li><a href="https://unix.stackexchange.com/questions/49779/can-i-change-the-font-of-terminal">Can I change the font of terminal?</a></li>
  <li><a href="https://unix.stackexchange.com/questions/96591/is-it-possible-to-show-mathematical-symbols-in-the-terminal">Is it possible to show mathematical symbols in the terminal?</a></li>
  </ul>
  
  <p>The answer to both is yes.</p>
  
  <p>I am wondering if it is possible to have a CLI print out mathematical symbols into the terminal from a custom font <em>only it is personally using</em>, while at the same time I never have to change the font on my terminal (I can keep using the default font for everything else). That is, say I have my default font for my terminal set to <code>x</code>. The CLI program would have downloaded and have a local copy of font <code>y</code>. Then the CLI sets the font type to font <code>y</code> for the terminal, draws some stuff in font <code>y</code>, and then sets it back to font <code>x</code> before closing. That way the terminal still has its original font but it was also able to display symbols (like math symbols) from another font. Wondering if this is in any way possible.</p>
  
  <p>I'm imagining this sort of like how you have font-families in CSS. In CSS, you can provide a downloaded font to the end user's browser to display the text using a different font than what they have as the default in the browser. Wondering if you can do this same sort of thing with the terminal. Specifically I am on the Mac using iTerm2, but knowing if it's possible there or on any other terminal would be useful to know.</p>