PDA

View Full Version : Problem with specific font



ratsrcute
20th February 2009, 17:56
This is PyQt4.

I created an application to put a text item on a graphics scene. It worked fine. Then I wanted to set the font to "Petrucci", which is a True Type music-related font. For isntance, the 'e' character is an image of a quarter-note.

If I set the font to an ordinary text font like Courier New, it works fine. However, when I set the font to Petrucci, all I get is boxes (I think it's the kind of box that essentially means "no representation"). Can someone give me an idea what to look for?

Thanks,
Mike

wysota
21st February 2009, 14:57
Try checking what happens if you apply this font to QLineEdit or QTextEdit and start entering text. See if it works for any character at all.