What fonts do I have?

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

    What fonts do I have?

    I have just recompiled, upgraded to PHP 4.3.4. As an exercise (and
    curiosity) I've decided to test out PDF functions and got the test in the
    PHP online manual working. I had one problem whereby the example refered to
    Times New Roman - I didn't have this, but I did have Times-Roman which
    worked.

    My question - How do I know what fonts I *do* have available? I've run
    phpinfo() and gd_info() which I hope is enough to tell some wise person out
    there what fonts I have on my SuSE Linux 8.1 box:

    gd_info() says:
    FreeType Linkage with freetype
    FreeType Support 1
    GD Version bundled 2.0.15 compatible
    GIF Read Support 1
    JPG Support 1
    PNG Support 1
    WBMP Support 1
    XBM Support 1

    Noteably, T1Lib has no value thus I gather, not installed... Do I need this?
    If so, what rpm package (or where can I get a tar ball) for this?

    My phpinfo():
    Configure Command:
    './configure' '--with-mysql'
    '--with-apache=/data/www/software/apachePHP/apache' '--with-mcrypt'
    '--with-jpeg-dir' '--enable-exif' '--with-zlib-dir' '--with-gd' '--with-ttf'
    '--with-pdflib' '--enable-gd-native-ttf' '--with-freetype-dir'
    '--with-mime-magic' '--disable-session' '--disable-cgi'

    exif
    EXIF Support enabled - version 1.4
    Supported EXIF Version 0220
    Supported filetypes JPEG,TIFF

    GD
    GD Support enabled
    GD Version bundled (2.0.15 compatable)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled

    PDF
    PDF Support enabled
    PDFlib GmbH Version 3.02


    That is all I think would be anyway related to fonts/graphics...

    Can anyone advise me? via the newsgroup please?

    Thanks in advance
    randelld


  • Ian.H

    #2
    Re: What fonts do I have?

    On Tue, 04 Nov 2003 06:29:09 +0000, Randell D. wrote:
    [color=blue]
    > My question - How do I know what fonts I *do* have available? I've run
    > phpinfo() and gd_info() which I hope is enough to tell some wise person
    > out there what fonts I have on my SuSE Linux 8.1 box:[/color]


    How the hell are we supposed to do that with no access!?!? (unless you
    want to post your root login details here ;) ).

    Why can't _YOU_ search your own box for what fonts are installed and not?
    I could give you a list of over 600 fonts for my box... but I bet you
    have nowhere near that as most of mine were from elsewhere.

    You see.. you're asking a damn lazy question! and an off-topic one too
    (what fonts you have and where they are is _nothing_ to do with PHP) and
    one a person with no access can't answer. WTF made you think we would!?

    That's like asking you what wallpapers I have available.. you have as much
    clue about that as anyone else if going to have about your fonts.

    Learn how to use your system properly, then you wouldn't be asking such
    daft questions.



    Regards,

    Ian

    --
    Ian.H [Design & Development]
    digiServ Network - Web solutions
    www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
    Programming, Web design, development & hosting.

    Comment

    • James Henson

      #3
      Re: What fonts do I have?

      Ian.H wrote:
      [color=blue]
      > Why can't _YOU_ search your own box for what fonts are installed and not?
      > I could give you a list of over 600 fonts for my box... but I bet you
      > have nowhere near that as most of mine were from elsewhere.[/color]

      Consider that the OP would like a method of determining at runtime
      which fonts are available. The script might not be running at his
      own box.
      [color=blue]
      > You see.. you're asking a damn lazy question! and an off-topic one too
      > (what fonts you have and where they are is _nothing_ to do with PHP) and
      > one a person with no access can't answer. WTF made you think we would!?[/color]

      The php-script has to generate PDF's. Therefore it has to find out
      which fonts are available to it. There just might be a function for
      that, don't you think?
      [color=blue]
      > That's like asking you what wallpapers I have available.. you have as much
      > clue about that as anyone else if going to have about your fonts.[/color]

      No, the script should be able to determine *at runtime* which
      fonts are available. Oh, and mind that *available* is not equal to
      *installed*.
      [color=blue]
      > Learn how to use your system properly, then you wouldn't be asking such
      > daft questions.[/color]

      Learn how to read, and think further than you own little machine, then
      you wouldn't be such a miserable dork.

      James

      Comment

      • lawrence

        #4
        Re: What fonts do I have?

        "Randell D." <you.can.email. me.at.randelld@ yahoo.com> wrote in message news:<VGHpb.286 889$pl3.177605@ pd7tw3no>...[color=blue]
        > I have just recompiled, upgraded to PHP 4.3.4. As an exercise (and
        > curiosity) I've decided to test out PDF functions and got the test in the
        > PHP online manual working. I had one problem whereby the example refered to
        > Times New Roman - I didn't have this, but I did have Times-Roman which
        > worked.
        >
        > My question - How do I know what fonts I *do* have available? I've run
        > phpinfo() and gd_info() which I hope is enough to tell some wise person out
        > there what fonts I have on my SuSE Linux 8.1 box:[/color]

        You're on the wrong newsgroup. Go to a Linux newsgroup and ask what
        fonts Suse comes installed with.

        Or, if the question is what fonts come built-in with PHP's PDF
        extension, read the documentation here:

        PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

        Comment

        • Randell D.

          #5
          Re: What fonts do I have?


          "Ian.H" <ian@WINDOZEdig iserv.net> wrote in message
          news:pan.2003.1 1.04.12.02.23.4 25546@hybris.di giserv.net...[color=blue]
          > On Tue, 04 Nov 2003 06:29:09 +0000, Randell D. wrote:
          >[color=green]
          > > My question - How do I know what fonts I *do* have available? I've run
          > > phpinfo() and gd_info() which I hope is enough to tell some wise person
          > > out there what fonts I have on my SuSE Linux 8.1 box:[/color]
          >
          >
          > How the hell are we supposed to do that with no access!?!? (unless you
          > want to post your root login details here ;) ).
          >
          > Why can't _YOU_ search your own box for what fonts are installed and not?
          > I could give you a list of over 600 fonts for my box... but I bet you
          > have nowhere near that as most of mine were from elsewhere.
          >
          > You see.. you're asking a damn lazy question! and an off-topic one too
          > (what fonts you have and where they are is _nothing_ to do with PHP) and
          > one a person with no access can't answer. WTF made you think we would!?
          >
          > That's like asking you what wallpapers I have available.. you have as much
          > clue about that as anyone else if going to have about your fonts.
          >
          > Learn how to use your system properly, then you wouldn't be asking such
          > daft questions.
          >
          >
          >
          > Regards,
          >
          > Ian
          >
          > --
          > Ian.H [Design & Development]
          > digiServ Network - Web solutions
          > www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
          > Programming, Web design, development & hosting.[/color]

          Someone your age shouldn't stress out so quickly - take a holiday, find a
          friend, get a dog, or do all of the above...

          Newsgroups are akin to schools - We share knowledge - Its the first time
          I've encountered such crap in this newsgroup from anyone - You have not
          shared anything productive. Knowledge here is freely shared by those who
          are helpful and have the knowledge - If you don't want to be helpful, then
          take your stress and your knowledge somewhere else.


          Comment

          • Randell D.

            #6
            Re: What fonts do I have?


            "James Henson" <jbh@example.co m> wrote in message
            news:3fa7baa3$0 $58701$e4fe514c @news.xs4all.nl ...[color=blue]
            > Ian.H wrote:
            >[color=green]
            > > Why can't _YOU_ search your own box for what fonts are installed and[/color][/color]
            not?[color=blue][color=green]
            > > I could give you a list of over 600 fonts for my box... but I bet you
            > > have nowhere near that as most of mine were from elsewhere.[/color]
            >
            > Consider that the OP would like a method of determining at runtime
            > which fonts are available. The script might not be running at his
            > own box.
            >[color=green]
            > > You see.. you're asking a damn lazy question! and an off-topic one too
            > > (what fonts you have and where they are is _nothing_ to do with PHP) and
            > > one a person with no access can't answer. WTF made you think we would!?[/color]
            >
            > The php-script has to generate PDF's. Therefore it has to find out
            > which fonts are available to it. There just might be a function for
            > that, don't you think?
            >[color=green]
            > > That's like asking you what wallpapers I have available.. you have as[/color][/color]
            much[color=blue][color=green]
            > > clue about that as anyone else if going to have about your fonts.[/color]
            >
            > No, the script should be able to determine *at runtime* which
            > fonts are available. Oh, and mind that *available* is not equal to
            > *installed*.
            >[color=green]
            > > Learn how to use your system properly, then you wouldn't be asking such
            > > daft questions.[/color]
            >
            > Learn how to read, and think further than you own little machine, then
            > you wouldn't be such a miserable dork.
            >
            > James
            >[/color]

            Thanks for that... I didn't mean to ask a dumb question and am open to
            constructive criticism - I had believed there would be a function that would
            tell me what functions I have available - or at very least, a module that I
            could compile in that would give me this sorts of information - something
            akin to gd_info() for the GD Library.




            Comment

            • Randell D.

              #7
              Re: What fonts do I have?


              "lawrence" <lkrubner@geoci ties.com> wrote in message
              news:da7e68e8.0 311040852.7ab10 574@posting.goo gle.com...[color=blue]
              > "Randell D." <you.can.email. me.at.randelld@ yahoo.com> wrote in message[/color]
              news:<VGHpb.286 889$pl3.177605@ pd7tw3no>...[color=blue][color=green]
              > > I have just recompiled, upgraded to PHP 4.3.4. As an exercise (and
              > > curiosity) I've decided to test out PDF functions and got the test in[/color][/color]
              the[color=blue][color=green]
              > > PHP online manual working. I had one problem whereby the example[/color][/color]
              refered to[color=blue][color=green]
              > > Times New Roman - I didn't have this, but I did have Times-Roman which
              > > worked.
              > >
              > > My question - How do I know what fonts I *do* have available? I've run
              > > phpinfo() and gd_info() which I hope is enough to tell some wise person[/color][/color]
              out[color=blue][color=green]
              > > there what fonts I have on my SuSE Linux 8.1 box:[/color]
              >
              > You're on the wrong newsgroup. Go to a Linux newsgroup and ask what
              > fonts Suse comes installed with.
              >
              > Or, if the question is what fonts come built-in with PHP's PDF
              > extension, read the documentation here:
              >
              > http://us2.php.net/manual/en/ref.pdf.php[/color]

              I did read the PDF page you referred me too - but correct me if I'm wrong, I
              didn't see anything that could tell me what fonts I do have available to my
              PDF fonts. I thought there might me something like gd_info() that would
              give me this information.

              Have you any other ideas?


              Comment

              • James Henson

                #8
                Re: What fonts do I have?

                Randell D. wrote:
                [color=blue]
                > I had believed there would be a function that
                > would tell me what functions I have available - or at very least, a module
                > that I could compile in that would give me this sorts of information -
                > something akin to gd_info() for the GD Library.[/color]

                You can check an individual font by calling PDF_findfont from
                Thomas Merz's PDFlib. The "lite" version is free for open source
                projects.




                Or just restrict yourself to the 35 "standard" PostScript
                fonts. Those are generally available in any PS-capable
                printer.



                Hope this helps
                James

                Comment

                • lawrence

                  #9
                  Re: What fonts do I have?

                  "Randell D." <you.can.email. me.at.randelld@ yahoo.com> wrote in message news:<gtTpb.292 569$9l5.1937@pd 7tw2no>...[color=blue]
                  > "Ian.H" <ian@WINDOZEdig iserv.net> wrote in message
                  > news:pan.2003.1 1.04.12.02.23.4 25546@hybris.di giserv.net...[color=green]
                  > > On Tue, 04 Nov 2003 06:29:09 +0000, Randell D. wrote:
                  > >[color=darkred]
                  > > > My question - How do I know what fonts I *do* have available? I've run
                  > > > phpinfo() and gd_info() which I hope is enough to tell some wise person
                  > > > out there what fonts I have on my SuSE Linux 8.1 box:[/color]
                  > >
                  > >
                  > > How the hell are we supposed to do that with no access!?!? (unless you
                  > > want to post your root login details here ;) ).
                  > >
                  > > Why can't _YOU_ search your own box for what fonts are installed and not?
                  > > I could give you a list of over 600 fonts for my box... but I bet you
                  > > have nowhere near that as most of mine were from elsewhere.[/color][/color]

                  I agree that this is way, way out of line. It is reasonable to ask
                  what features the PDF module of PHP has, including if it comes with
                  built-in fonts. That's on topic, and appropriate to this newsgroup.

                  Comment

                  Working...