<p>I have a cross platform app and for my Linux and Mac versions it generates a postscript file for printing reports and then prints them with CUPS. It works for simple characters and images but I would like to have the ability to embed a true type font directly into the postscript file. Does anyone know how to do this?? 
Also I can encode simple ascii characters but I'm not sure how to encode any characters beyond the usual a-z 0-9, things like foreign characters with accents.</p>

[{'answer_id': 80260, 'author': 'ccxvii', 'author_id': 14849, 'author_profile': 'https://Stackoverflow.com/users/14849', 'pm_score': 3, 'selected': False, 'text': '<p>In order to embed a TrueType font in a Postscript document, you will first need to convert it to a Type 42 font. This conversion turns the font into postscript code.\nThere are several small utilities for doing this conversion, or you can read\nthe <a href="http://www.adobe.com/devnet/font/pdfs/5012.Type42_Spec.pdf" rel="noreferrer">Type 42 specification</a> and write\nyour own code for it.</p>\n\n<p>Embedding Type 1 fonts is a lot easier. Linux ships with a large set of Type 1 fonts, and so does OS X if you have X11 installed. Generating PDF instead is also an option you may want to look into, since PDF can embed TrueType fonts directly.</p>\n'}, {'answer_id': 80265, 'author': 'ccxvii', 'author_id': 14849, 'author_profile': 'https://Stackoverflow.com/users/14849', 'pm_score': 3, 'selected': False, 'text': '<p>Postscript fonts come with widely varying encodings, so if you want to reliably\nprint iso-8859-1 characters you need to reencode the font in your postscript\nprogram.</p>\n\n<p><a href="http://en.wikibooks.org/wiki/PostScript_FAQ#How_to_print_accented_characters.3F" rel="noreferrer">PostScript FAQ - How to print accented characters</a></p>\n'}]
['https://Stackoverflow.com/questions/78874', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13676/']