I'm generating a pdf with xelatex that could contain arbitrary utf8 printable characters. Assuming I don't greatly care what font ends up being used for any particular character, how do I get most/all of the characters to be properly output? Is there a font that will support all unicode printable characters? If not, what are the pluses and minuses of various fonts? Are there characters other than {}_#%&$ that need to be escaped or otherwise specially treated?

  • 5
    All Unicode? I don't know any such font. – egreg Nov 29 '18 at 22:52
  • 3
    en.wikipedia.org/wiki/Unicode_font lists the main "large" fonts eg gnu unifont covers the BMP, but that still leaves the math alphabets which are in plane 1 – David Carlisle Nov 29 '18 at 23:04
  • BMP only would be a good start. I see blog.michael.franzl.name/2014/12/10/… which (assuming it works) could be applied per other script – ysth Nov 30 '18 at 0:33
  • The question title was edited to ask for a specific font. While I mention fonts in the body, that isn't the question; the question is how to handle arbitrary utf8 characters – ysth Jan 18 at 9:20
  • For CJKV ideographs, you have Hanazono, which covers all CJKV ideographs in the Unicode 10.0 standard, including the entire Supplementary Ideographic Plane (SIP, there are 60,317 in total). It does not, however, cover the 5 newly added ideographs in BMP in Unicode 11.0. BTW, Hanazono is not particularly well-designed as its purpose is to merely cover all Unicode ideographs. I don’t see a purpose of a pan-Unicode font. You could also try the Google Noto font families. – Ruixi Zhang Jan 18 at 13:44

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.