Skip to main content

create print file on disk with smaller font

  • March 16, 2011
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 15 March 2011]

Does anyone know how to create a print file to disk with a selected font so that when a user tries to display the file in notepad or word pad it is automatically displayed with that font?

Is there a method to have embedded fonts?

3 replies

[Migrated content. Thread originally posted on 15 March 2011]

Does anyone know how to create a print file to disk with a selected font so that when a user tries to display the file in notepad or word pad it is automatically displayed with that font?

Is there a method to have embedded fonts?

Notepad will never load any font, it is a text editor.

If you care to code the Rich Text Format (rtf), editors like Write (Windows) will accept formatting, in which case you can use the format as described here:
Link to RTF specification on MSDN
Another technique may be to use a postscript driver and redirect its output to a port containing FILE:, in which case you will be prompted for a file name when you print to this driver.
To set fonts for such cases, you will just use w$font, see examples.

[Migrated content. Thread originally posted on 15 March 2011]

Does anyone know how to create a print file to disk with a selected font so that when a user tries to display the file in notepad or word pad it is automatically displayed with that font?

Is there a method to have embedded fonts?

Notepad will never load any font, it is a text editor.

If you care to code the Rich Text Format (rtf), editors like Write (Windows) will accept formatting, in which case you can use the format as described here:
Link to RTF specification on MSDN
Another technique may be to use a postscript driver and redirect its output to a port containing FILE:, in which case you will be prompted for a file name when you print to this driver.
To set fonts for such cases, you will just use w$font, see examples.

[Migrated content. Thread originally posted on 15 March 2011]

Does anyone know how to create a print file to disk with a selected font so that when a user tries to display the file in notepad or word pad it is automatically displayed with that font?

Is there a method to have embedded fonts?

Notepad will never load any font, it is a text editor.

If you care to code the Rich Text Format (rtf), editors like Write (Windows) will accept formatting, in which case you can use the format as described here:
Link to RTF specification on MSDN
Another technique may be to use a postscript driver and redirect its output to a port containing FILE:, in which case you will be prompted for a file name when you print to this driver.
To set fonts for such cases, you will just use w$font, see examples.