I might be wrong, but I don't think pygame would search for fonts in OpenOffice's directories. To load one of those fonts (not recommended), do:
- Code: Select all
font = pygame.font.Font('/Application/OpenOffice.org1.0.3/share/fonts/truetype/ArialHB.ttf')
pygame.font.match_font works on the same syntax as returned by get_fonts, i.e. lowercase, unpunctuated and suffixless. Try pygame.font.match_font('freesansbold').
be in pygame's lib directory! That's the font it falls back to if no other fonts can be found on the system.
On my computer, it searches for fonts in /usr/share/fonts/corefonts/. I don't know if it's such a good idea to put stuff in there by hand.
Furthermore, why compile without installing (make install
)? Do that and see if it works any better.
Felltir wrote:has no sig, and therefore something to hide
GENERATION n: The first time you see this, copy it into your sig on any forum. If n is an even number, divide it by 2. If it's odd, multiply it by 3 and add 1. Prove that this sequence converges to 1 for all n.