TTF fonts rendered in Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vald

    TTF fonts rendered in Python


    I wonder if there is any module for rendering True
    Type Fonts in Python ? I need to create a GIF files
    with nice antialiased text and I'm unable to find
    any module with such functionality.

    Sincerely,
    K.

  • Chris Liechti

    #2
    Re: TTF fonts rendered in Python

    vald <vald@valis.amb er.eu.org> wrote in
    news:mailman.10 63224795.24414. python-list@python.org :
    [color=blue]
    >
    > I wonder if there is any module for rendering True
    > Type Fonts in Python ? I need to create a GIF files
    > with nice antialiased text and I'm unable to find
    > any module with such functionality.[/color]

    lok at pygame and pil

    chris

    --
    Chris <cliechti@gmx.n et>

    Comment

    • News M Claveau /Hamster-P

      #3
      Re: TTF fonts rendered in Python


      PIL ? http://www.pythonware.com/products/pil/

      --
      Michel Claveau


      Comment

      • Simon Burton

        #4
        Re: TTF fonts rendered in Python


        One idea:
        pygame can render with TTF fonts,
        it can also save surfaces in tga format.
        Then use PIL to convert to gif. The only
        question is, can pygame do this without displaying
        a window etc.

        Simon Burton.

        Comment

        • Anthony Baxter

          #5
          Re: TTF fonts rendered in Python

          [color=blue][color=green][color=darkred]
          >>> Simon Burton wrote[/color][/color]
          >
          > One idea:
          > pygame can render with TTF fonts,
          > it can also save surfaces in tga format.
          > Then use PIL to convert to gif. The only
          > question is, can pygame do this without displaying
          > a window etc.[/color]

          Absolutely - I have code here that generates animated gifs doing
          just this sort of thing.

          Anthony
          --
          Anthony Baxter <anthony@interl ink.com.au>
          It's never too late to have a happy childhood.


          Comment

          • Eric Brunel

            #6
            Re: TTF fonts rendered in Python

            vald wrote:[color=blue]
            > I wonder if there is any module for rendering True
            > Type Fonts in Python ? I need to create a GIF files
            > with nice antialiased text and I'm unable to find
            > any module with such functionality.
            >
            > Sincerely,
            > K.
            >[/color]

            If you want something a bit lighter than PyGame or PIL, there's also gd with
            gdmodule:



            HTH
            --
            - Eric Brunel <eric.brunel@pr agmadev.com> -
            PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com

            Comment

            • дамјан г.

              #7
              Re: TTF fonts rendered in Python


              [color=blue]
              >
              > One idea:
              > pygame can render with TTF fonts,
              > it can also save surfaces in tga format.
              > Then use PIL to convert to gif. The only
              > question is, can pygame do this without displaying
              > a window etc.
              >
              > Simon Burton.[/color]

              Perhaps python gdmodule will do?




              --
              Дамјан (jabberID:damja n@bagra.net.mk)

              ISP techs know most computer problems are PEBKAC.
              (Problem Exists Between Keyboard And Chair)

              Comment

              Working...