On-The-Fly ImageCreation Font conflict

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

    On-The-Fly ImageCreation Font conflict

    Hello

    I have a ASP script that generates a jpg/gif image using the
    Overpower.Image Lib component.

    I do all my tests on my own intranet server before uploading it to the
    webhost

    Actually i try to use the font "CasacedScr ipt" to generates page
    titles.

    On my Intranet it works perfectly... but when uploading it, it doesn't
    work anymore... it shows the font Times instead.

    I send the font installation package to my host to have them install
    them on their server and they did it... now actually it doesn't work
    with the ImageLib component.

    But we tried something, we wrote a HTML page with that :
    <font face=CascadeScr ipt size=+5>testing the font</font>

    when called by IExplorer directly on the server, this work... the good
    Font is showed... but when i try using my component to get this
    font... it doesn't seem to work.

    Since the HTML page can display it, it must be installed on the
    server... so why does my component don't display the good font?

    here's my code for generating images :

    <%@ Language=VBScri pt %>
    <% option explicit %>
    <%
    dim ILIB
    dim vStr, vCol, vW
    vStr = Request.QuerySt ring("s")
    if vStr <> "" then
    vCol = Request.QuerySt ring("c")
    if vCol = "" then
    'couleur bleue par défaut
    vCol = "012147"
    end if

    vW = Request.QuerySt ring("w")

    ' Création de l'objet OverPower
    set ILIB = server.createob ject("Overpower .ImageLib")
    ' Paramètrage du compteur
    ILIB.FontColor = "#" & vCol
    ILIB.PenColor = "#" & vCol
    ILIB.BrushColor = "#FFFFFF"
    ILIB.FontFace = ""
    ILIB.FontSize = 14
    ILIB.FontBold = false
    ILIB.FontItalic = false
    ILIB.FontAntial iasing = true
    if vW = "" then
    ILIB.width = ILIB.GetTextwid th(vStr)+4
    else
    ILIB.width = vW
    end if
    ILIB.height = ILIB.GetTextHei ght(vStr)+4 + 3
    ILIB.fBox 1,1,ILIB.WIDTH, ILIB.HEIGHT
    ILIB.Textout vStr,1,1
    ILIB.Line 1, ILIB.HEIGHT - 4, ILIB.WIDTH - 1, ILIB.HEIGHT - 4
    ILIB.PictureBin aryWrite 3, 100, ""
    end if
    %>


    So if anybody could have any simple idea of what the problem could
    be... please help me!

    thank you very much in advance
    StaZ
  • Bojidar Alexandrov

    #2
    Re: On-The-Fly ImageCreation Font conflict

    HTML Page use fonts on client, not on the server!

    Having that in mind probbaly you have not sent them needed files for this
    font, or they have not installed it.

    Bojidar Alexandrov

    "StaZ" <StaZ003@hotmai l.com> wrote in message
    news:d84f57f0.0 406180458.38921 7ed@posting.goo gle.com...[color=blue]
    > Hello
    >
    > I have a ASP script that generates a jpg/gif image using the
    > Overpower.Image Lib component.
    >
    > I do all my tests on my own intranet server before uploading it to the
    > webhost
    >
    > Actually i try to use the font "CasacedScr ipt" to generates page
    > titles.
    >
    > On my Intranet it works perfectly... but when uploading it, it doesn't
    > work anymore... it shows the font Times instead.
    >
    > I send the font installation package to my host to have them install
    > them on their server and they did it... now actually it doesn't work
    > with the ImageLib component.
    >
    > But we tried something, we wrote a HTML page with that :
    > <font face=CascadeScr ipt size=+5>testing the font</font>
    >
    > when called by IExplorer directly on the server, this work... the good
    > Font is showed... but when i try using my component to get this
    > font... it doesn't seem to work.
    >
    > Since the HTML page can display it, it must be installed on the
    > server... so why does my component don't display the good font?
    >
    > here's my code for generating images :
    >
    > <%@ Language=VBScri pt %>
    > <% option explicit %>
    > <%
    > dim ILIB
    > dim vStr, vCol, vW
    > vStr = Request.QuerySt ring("s")
    > if vStr <> "" then
    > vCol = Request.QuerySt ring("c")
    > if vCol = "" then
    > 'couleur bleue par défaut
    > vCol = "012147"
    > end if
    >
    > vW = Request.QuerySt ring("w")
    >
    > ' Création de l'objet OverPower
    > set ILIB = server.createob ject("Overpower .ImageLib")
    > ' Paramètrage du compteur
    > ILIB.FontColor = "#" & vCol
    > ILIB.PenColor = "#" & vCol
    > ILIB.BrushColor = "#FFFFFF"
    > ILIB.FontFace = ""
    > ILIB.FontSize = 14
    > ILIB.FontBold = false
    > ILIB.FontItalic = false
    > ILIB.FontAntial iasing = true
    > if vW = "" then
    > ILIB.width = ILIB.GetTextwid th(vStr)+4
    > else
    > ILIB.width = vW
    > end if
    > ILIB.height = ILIB.GetTextHei ght(vStr)+4 + 3
    > ILIB.fBox 1,1,ILIB.WIDTH, ILIB.HEIGHT
    > ILIB.Textout vStr,1,1
    > ILIB.Line 1, ILIB.HEIGHT - 4, ILIB.WIDTH - 1, ILIB.HEIGHT - 4
    > ILIB.PictureBin aryWrite 3, 100, ""
    > end if
    > %>
    >
    >
    > So if anybody could have any simple idea of what the problem could
    > be... please help me!
    >
    > thank you very much in advance
    > StaZ[/color]


    Comment

    • staz003@hotmail.com

      #3
      Re: On-The-Fly ImageCreation Font conflict

      You haven't read what i said...
      It's not HTML it's ACTIVE SERVER PAGE script

      so it is ran on the server... so the server si the client... so to display the image... it must be installed on the server... actually my tech at the web host tried the font on HTML directly on the Server and it worked... so necessarily the font must be installed... so whjy doesn't my component recognize it... if i run the script online from my computer... which actually have the cascadescript font... it doesn't work... this has nothing to do with the client... it's ASP

      *************** *************** *************** *************** **********
      Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
      Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

      Comment

      • Bojidar Alexandrov

        #4
        Re: On-The-Fly ImageCreation Font conflict

        You do not understand the entire process - with server side script (ASP) you
        generate HTML that client's browser render!


        "Martin Roy" <staz003@hotmai l.com> wrote in message
        news:OQLfIbTVEH A.2408@tk2msftn gp13.phx.gbl...[color=blue]
        > You haven't read what i said...
        > It's not HTML it's ACTIVE SERVER PAGE script
        >
        > so it is ran on the server... so the server si the client... so to display[/color]
        the image... it must be installed on the server... actually my tech at the
        web host tried the font on HTML directly on the Server and it worked... so
        necessarily the font must be installed... so whjy doesn't my component
        recognize it... if i run the script online from my computer... which
        actually have the cascadescript font... it doesn't work... this has nothing
        to do with the client... it's ASP[color=blue]
        >
        > *************** *************** *************** *************** **********
        > Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
        > Comprehensive, categorised, searchable collection of links to ASP &[/color]
        ASP.NET resources...


        Comment

        • staz003@hotmail.com

          #5
          Re: On-The-Fly ImageCreation Font conflict

          html hase nothing to do with that i told you... the script doesn't generates HTML it generates an IMAGE...

          I told you it works on my intranet server on computers without the font.

          it's an image that is generated not HTML code... so i'm asking what could the problem (with the font) be... how to install it the good way is there smething to do with IIS...

          caus it works with Comic Sans MS works so the problem must be the font but the tech said he installed if 2 times... and i repeat... directly on the server... the font is showing (not through my image generating script, through a HTML page... This HTML page diplay the good font on the server... on my computer... but not on the other computer that doesn't have the font... because that is HTML what OverPower.Image Lib does is generate images according to the local settings... but in this case the local setting is the server because it's a server-side script.

          I'm not a newbie dude

          *************** *************** *************** *************** **********
          Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
          Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

          Comment

          • Bojidar Alexandrov

            #6
            Re: On-The-Fly ImageCreation Font conflict

            Surelly there is a problem with the component.
            I am trying to say you that you cannot test with html because on your local
            computer it uses your font. On the server it will use server's font but I
            doubt if operator can see the difference in fonts.

            There is nothing additional to install the font for IIS.
            Ask operator to restart IIS if is possible - either the ASP or the object
            can still stay cached...


            Bojidar Alexandrov

            "Martin Roy" <staz003@hotmai l.com> wrote in message
            news:eKBQsoTVEH A.3656@TK2MSFTN GP11.phx.gbl...[color=blue]
            > html hase nothing to do with that i told you... the script doesn't[/color]
            generates HTML it generates an IMAGE...[color=blue]
            >
            > I told you it works on my intranet server on computers without the font.
            >
            > it's an image that is generated not HTML code... so i'm asking what could[/color]
            the problem (with the font) be... how to install it the good way is there
            smething to do with IIS...[color=blue]
            >
            > caus it works with Comic Sans MS works so the problem must be the font but[/color]
            the tech said he installed if 2 times... and i repeat... directly on the
            server... the font is showing (not through my image generating script,
            through a HTML page... This HTML page diplay the good font on the server...
            on my computer... but not on the other computer that doesn't have the
            font... because that is HTML what OverPower.Image Lib does is generate images
            according to the local settings... but in this case the local setting is the
            server because it's a server-side script.[color=blue]
            >
            > I'm not a newbie dude
            >
            > *************** *************** *************** *************** **********
            > Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
            > Comprehensive, categorised, searchable collection of links to ASP &[/color]
            ASP.NET resources...


            Comment

            • Patrice

              #7
              Re: On-The-Fly ImageCreation Font conflict

              I don't see where you select the font face (FontFace is an empty string ?)

              If the component allows to enumerate fonts, you could also enumerate fonts
              to check if it's there. The image could also be in the IE cache (seing the
              old version).

              For now I would say Windows select the closest font he can but doesn't have
              all the information for an exact match...

              Patrice


              --

              "Bojidar Alexandrov" <bojo_do_not_sp am@kodar.net> a écrit dans le message de
              news:ud6wUSTVEH A.556@tk2msftng p13.phx.gbl...[color=blue]
              > HTML Page use fonts on client, not on the server!
              >
              > Having that in mind probbaly you have not sent them needed files for this
              > font, or they have not installed it.
              >
              > Bojidar Alexandrov
              >
              > "StaZ" <StaZ003@hotmai l.com> wrote in message
              > news:d84f57f0.0 406180458.38921 7ed@posting.goo gle.com...[color=green]
              > > Hello
              > >
              > > I have a ASP script that generates a jpg/gif image using the
              > > Overpower.Image Lib component.
              > >
              > > I do all my tests on my own intranet server before uploading it to the
              > > webhost
              > >
              > > Actually i try to use the font "CasacedScr ipt" to generates page
              > > titles.
              > >
              > > On my Intranet it works perfectly... but when uploading it, it doesn't
              > > work anymore... it shows the font Times instead.
              > >
              > > I send the font installation package to my host to have them install
              > > them on their server and they did it... now actually it doesn't work
              > > with the ImageLib component.
              > >
              > > But we tried something, we wrote a HTML page with that :
              > > <font face=CascadeScr ipt size=+5>testing the font</font>
              > >
              > > when called by IExplorer directly on the server, this work... the good
              > > Font is showed... but when i try using my component to get this
              > > font... it doesn't seem to work.
              > >
              > > Since the HTML page can display it, it must be installed on the
              > > server... so why does my component don't display the good font?
              > >
              > > here's my code for generating images :
              > >
              > > <%@ Language=VBScri pt %>
              > > <% option explicit %>
              > > <%
              > > dim ILIB
              > > dim vStr, vCol, vW
              > > vStr = Request.QuerySt ring("s")
              > > if vStr <> "" then
              > > vCol = Request.QuerySt ring("c")
              > > if vCol = "" then
              > > 'couleur bleue par défaut
              > > vCol = "012147"
              > > end if
              > >
              > > vW = Request.QuerySt ring("w")
              > >
              > > ' Création de l'objet OverPower
              > > set ILIB = server.createob ject("Overpower .ImageLib")
              > > ' Paramètrage du compteur
              > > ILIB.FontColor = "#" & vCol
              > > ILIB.PenColor = "#" & vCol
              > > ILIB.BrushColor = "#FFFFFF"
              > > ILIB.FontFace = ""
              > > ILIB.FontSize = 14
              > > ILIB.FontBold = false
              > > ILIB.FontItalic = false
              > > ILIB.FontAntial iasing = true
              > > if vW = "" then
              > > ILIB.width = ILIB.GetTextwid th(vStr)+4
              > > else
              > > ILIB.width = vW
              > > end if
              > > ILIB.height = ILIB.GetTextHei ght(vStr)+4 + 3
              > > ILIB.fBox 1,1,ILIB.WIDTH, ILIB.HEIGHT
              > > ILIB.Textout vStr,1,1
              > > ILIB.Line 1, ILIB.HEIGHT - 4, ILIB.WIDTH - 1, ILIB.HEIGHT - 4
              > > ILIB.PictureBin aryWrite 3, 100, ""
              > > end if
              > > %>
              > >
              > >
              > > So if anybody could have any simple idea of what the problem could
              > > be... please help me!
              > >
              > > thank you very much in advance
              > > StaZ[/color]
              >
              >[/color]


              Comment

              • Bob Lehmann

                #8
                Re: On-The-Fly ImageCreation Font conflict

                Maybe you're not a newbie, dude, but you're not specifying a font. Something
                that only happens to experienced people, dude.

                Bob Lehmann

                "Martin Roy" <staz003@hotmai l.com> wrote in message
                news:eKBQsoTVEH A.3656@TK2MSFTN GP11.phx.gbl...[color=blue]
                > html hase nothing to do with that i told you... the script doesn't[/color]
                generates HTML it generates an IMAGE...[color=blue]
                >
                > I told you it works on my intranet server on computers without the font.
                >
                > it's an image that is generated not HTML code... so i'm asking what could[/color]
                the problem (with the font) be... how to install it the good way is there
                smething to do with IIS...[color=blue]
                >
                > caus it works with Comic Sans MS works so the problem must be the font but[/color]
                the tech said he installed if 2 times... and i repeat... directly on the
                server... the font is showing (not through my image generating script,
                through a HTML page... This HTML page diplay the good font on the server...
                on my computer... but not on the other computer that doesn't have the
                font... because that is HTML what OverPower.Image Lib does is generate images
                according to the local settings... but in this case the local setting is the
                server because it's a server-side script.[color=blue]
                >
                > I'm not a newbie dude
                >
                > *************** *************** *************** *************** **********
                > Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
                > Comprehensive, categorised, searchable collection of links to ASP &[/color]
                ASP.NET resources...


                Comment

                Working...