TTF Kerning

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

    TTF Kerning

    Has anyone else encountered the problem of TTF files when called upon to
    generate text in PHP don't seem to have their kerning values applied? Has
    anyone figured out how to fix it?


  • Tim Roberts

    #2
    Re: TTF Kerning

    "EvilJordan " <EvilJordan@aol .com> wrote:[color=blue]
    >
    >Has anyone else encountered the problem of TTF files when called upon to
    >generate text in PHP don't seem to have their kerning values applied? Has
    >anyone figured out how to fix it?[/color]

    I don't understand the connection with PHP here. Are you saying, for
    example, that this doesn't look right:

    <html><body>
    <span style="font: 14pt Comic Sans MS">Testing</span>
    </body></html>

    You understand that you can't use arbitrary font files in a web page,
    unless the browser's system also happens to have that font installed?

    If I've misunderstood your question, try it again with an example.
    --
    - Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.

    Comment

    • Jasen Betts

      #3
      Re: TTF Kerning

      On 2006-02-11, EvilJordan <EvilJordan@aol .com> wrote:[color=blue]
      > Has anyone else encountered the problem of TTF files when called upon to
      > generate text in PHP don't seem to have their kerning values applied? Has
      > anyone figured out how to fix it?[/color]

      how are you rendering text using ttf and php?
      are you, for instance, using the GTK stuff?

      Bye.
      Jasen

      Comment

      • EvilJordan

        #4
        Re: TTF Kerning

        I'm using the built in functions that cooperate with the GD library
        (imagettftext, imagettfbbox, etc.)

        "Jasen Betts" <jasen@free.net .nz> wrote in message
        news:2410.43edb 595.1d607@clunk er.homenet...[color=blue]
        > On 2006-02-11, EvilJordan <EvilJordan@aol .com> wrote:[color=green]
        >> Has anyone else encountered the problem of TTF files when called upon to
        >> generate text in PHP don't seem to have their kerning values applied? Has
        >> anyone figured out how to fix it?[/color]
        >
        > how are you rendering text using ttf and php?
        > are you, for instance, using the GTK stuff?
        >
        > Bye.
        > Jasen[/color]


        Comment

        • EvilJordan

          #5
          Re: TTF Kerning

          Yes, I understand arbitrary fonts can't be used on a webpage. PHP handles
          this on the server, with any font you install on the server, then spits out
          an image to the client's website. Look at the functions imagettftext and
          imagepstext.

          Here's an example: http://www.stewartspeak.com/dtr/demo/

          And yes, I'm saying if you start typeing with any font in PHP using the TTF
          functions, PHP GD ignores the built in Kerning. ImageMagick does not, but
          doesn't have native PHP front end support, and MagickWand is a POS.

          "Tim Roberts" <timr@probo.com > wrote in message
          news:3c0ru1let7 j7vulbitu371b6e bn471468c@4ax.c om...[color=blue]
          > "EvilJordan " <EvilJordan@aol .com> wrote:[color=green]
          >>
          >>Has anyone else encountered the problem of TTF files when called upon to
          >>generate text in PHP don't seem to have their kerning values applied? Has
          >>anyone figured out how to fix it?[/color]
          >
          > I don't understand the connection with PHP here. Are you saying, for
          > example, that this doesn't look right:
          >
          > <html><body>
          > <span style="font: 14pt Comic Sans MS">Testing</span>
          > </body></html>
          >
          > You understand that you can't use arbitrary font files in a web page,
          > unless the browser's system also happens to have that font installed?
          >
          > If I've misunderstood your question, try it again with an example.
          > --
          > - Tim Roberts, timr@probo.com
          > Providenza & Boekelheide, Inc.[/color]


          Comment

          Working...