Python
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Python

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old March 12th, 2008, 12:02 PM
Bob Klahn
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
font.IsFixedWidth failure?

This code, on my Windows XP system, with wxPython 2.8.4.0, fails to
identify fixed-width fonts:

import wx

app = wx.PySimpleApp()

face_names = wx.FontEnumerator_GetFacenames()

for face_name in face_names:
font = wx.Font(10, wx.MDERN, wx.NRMAL, wx.BLD,
underline=False, face=face_name)
print face_name.ljust(32), font.IsFixedWidth()

I.e., font.IsFixedWidth() always returns False. But faces such as
'r_ansi' are indeed fixed-width.

Is this a wxPython bug, or am I missing something basic here?


Bob

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Python > font.IsFixedWidth failure?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway