Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: Where do I find what colors and fonts are available?

Reply
Thread Tools

RE: Where do I find what colors and fonts are available?

 
 
Hornberger, Chris
Guest
Posts: n/a
 
      05-14-2004
>> and font names are available on my system. I'm using Windows 2000.
>I'd search for *.ttf (a particular kind of font file), and look at the
>directories where several of these show up. This is, of course, a Win2K
>rather than Python Question. On my installation, the fonts are in
>C:\WINNT\Fonts.


*nods* You mentioned that's a platform issue and not a Python issue. That's key, depending on what he's looking to do.

If he's looking for platform independence (and who wouldn't be in Python?), whatever GUI manager he's using will probably have the necessary functions/libraries for enumerating the fonts that *it* knows how to deal with, which would be the more accurate way to find fonts... speaking, again, platform-independently.

 
Reply With Quote
 
 
 
 
SeeBelow@SeeBelow.Nut
Guest
Posts: n/a
 
      05-14-2004
"Hornberger, Chris" wrote:
>
> >> and font names are available on my system. I'm using Windows 2000.

> >I'd search for *.ttf (a particular kind of font file), and look at the
> >directories where several of these show up. This is, of course, a Win2K
> >rather than Python Question. On my installation, the fonts are in
> >C:\WINNT\Fonts.

>
> *nods* You mentioned that's a platform issue and not a Python issue. That's key, depending on what he's looking to do.
>
> If he's looking for platform independence (and who wouldn't be in Python?), whatever GUI manager he's using will probably have the necessary functions/libraries for enumerating the fonts that *it* knows how to deal with, which would be the more accurate way to find fonts... speaking, again, platform-independently.


I didn't mention it in my original post, but I do need platform
independence. I want to choose fonts and colors that will work with
Windows or linux. So I need a way of knowing what my options are, i.e.,
what colornames and fonts are available, both on my system and other
peoples systems. For example, "blue" is always available, but "salmon"
may not be.
"courier" is probably always available, but "Bookman Old Style" may not
be.

At the moment I don't even know what's available on my own system, let
alone other people's, and I have not found this info in any
documentation.

Does Tkinter include its own fonts and colors? If so, where do I find
their names? If not, same question anyway.

m

--
"Many are stubborn in pursuit of the path they have chosen, few in
pursuit of the goal." - Friedrich Nietzsche

http://annevolve.sourceforge.net is what I'm into nowadays.
Humans may write to me at this address: zenguy at shaw dot ca
 
Reply With Quote
 
 
 
 
klappnase
Guest
Posts: n/a
 
      05-16-2004
>
> I didn't mention it in my original post, but I do need platform
> independence. I want to choose fonts and colors that will work with
> Windows or linux. So I need a way of knowing what my options are, i.e.,
> what colornames and fonts are available, both on my system and other
> peoples systems. For example, "blue" is always available, but "salmon"
> may not be.
> "courier" is probably always available, but "Bookman Old Style" may not
> be.
>
> At the moment I don't even know what's available on my own system, let
> alone other people's, and I have not found this info in any
> documentation.
>
> Does Tkinter include its own fonts and colors? If so, where do I find
> their names? If not, same question anyway.
>
> m


As far as colors are concerned I think it might be easiest to use
hexadecimal color descriptors if you are uncertain, like bg='#ff0000'
instead of 'red' .

Michael
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any library that can convert RGB colors to ANSI colors? ZelluX Python 3 12-01-2008 11:08 AM
TreeNode colors come from anchor colors AAaron123 ASP .Net 1 08-07-2008 07:56 PM
Fonts suddenly unreadable in IE 6.0 - All other system fonts appear normal Emily Computer Support 3 06-09-2005 04:52 AM
asp fonts problems (chinese fonts become ??????) sam ASP General 0 06-06-2004 06:15 AM
Where do I find what colors and fonts are available? SeeBelow@SeeBelow.Nut Python 4 05-17-2004 06:18 AM



Advertisments