For Programmers: Free Programming Magazines  


Home > Archive > Tcl > June 2006 > Re: Embed font in my program.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Embed font in my program.
Bryan Oakley

2006-06-28, 10:01 pm

gibe wrote:
> Hello everybody,
> I'm using tcl/tk in my program and it is running fine.
> However, I have a question about fonts. I'd like that all usesr can see
> the same thing on their screen and so use the same font. However, I
> don't have any control of their computers, so I can't know for sure if
> they have the font I want to use installed. A solution for this may be
> to provide my software with the font, but I don't know how to manage
> this.
> So, if you have any idea how to do this or know any other way of being
> sure of the font which will be used, I would be interested to learn.


I would argue that except for very rare circumstances, you shouldn't try
to force the user to use a font of your choosing.

Fonts, like colors, are highly subject to personal taste. Your best bet
is to write your app to look good with Helvetica, which is guaranteed to
be on every platform (though, every platform has their own definition of
"Helvetica"). Beyond that, let the user choose.

AFAIK, there is no way to use a font in Tk unless that font is installed
on the system (or font server, if using X11).



--
Bryan Oakley
http://www.tclscripting.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com