[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] PATCH: OTF fonts in windows/linux



Evidently I forgot about this patch.

Sending        lib/sysfont.py
Transmitting file data .
Committed revision 3078.

Nirav

On Wed, Nov 10, 2010 at 8:48 AM, Ian Katz <ifreecarve@xxxxxxxxx> wrote:
> I changed initsysfonts_unix() and verified that it was able to render
> fonts from .OTF files in Ubuntu Lucid.
>
> I didn't change anything in the OSX section of get_fonts()
> [initsysfonts_darwin()], because the way they are scanned has nothing
> to do with the extension of the font file.
>
> I changed initsysfonts_win32() but did not test it; I expect the same
> positive result as I got in linux.
>
> -Ian
>
> On Sat, Nov 6, 2010 at 4:21 PM, Nirav Patel <olpc@xxxxxxxxxxxxxx> wrote:
>> Looks good to me.  Has this been tested on OS X as well?
>>
>> Nirav
>>
>> On Wed, Oct 27, 2010 at 11:49 AM, Ian Katz <ifreecarve@xxxxxxxxx> wrote:
>>> Even though freetype supports OTF fonts, it looks like they are
>>> rejected by pygame because of their extension.  This patch enables
>>> .otf fonts in pygame.font.get_fonts().
>>>
>>> It's minimally tested (i.e., the enabled OTF fonts render properly),
>>> but seems to work.
>>>
>>> -Ian
>>>
>>> --
>>> Ian Katz
>>> Research Engineer, MIT Sea Grant AUV Laboratory
>>> ijk5@xxxxxxx / 617 253 9312
>>>
>>
>
>
>
> --
> Ian Katz
> Research Engineer, MIT Sea Grant AUV Laboratory
> ijk5@xxxxxxx / 617 253 9312
>