[plt-scheme] Re: True Type Fonts

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Mar 1 08:55:22 EST 2004

At Mon, 01 Mar 2004 11:25:15 +0000, Guenther Schmidt wrote:
> Plattform is Windows (XP), for print and display.

If it's a program that you're writing, and the font name is "Favorite",

  (make-object font% 12 "Favorite" 'default 'normal 'normal)

produces a font% object for drawing with "Favorite" into a canvas's
dc<%> or a printer-dc%.

If you want to change one of the mappings for generic "families"
('default, 'roman, 'modern, etc.) used by all programs, then you'll
have to edit "plt-prefs.ss" by hand, adding something like

 (|MrEd:ScreenDefault__| "Favorite")



for more details.

In either case, try `(get-face-list)' or `(get-font-from-user)' to see
the list of installed fonts that MrEd can access.


Posted on the users mailing list.