On-The-Fly ImageCreation Font conflict

S

StaZ

Hello

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

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

Actually i try to use the font "CasacedScript" 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=CascadeScript 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=VBScript %>
<% option explicit %>
<%
dim ILIB
dim vStr, vCol, vW
vStr = Request.QueryString("s")
if vStr <> "" then
vCol = Request.QueryString("c")
if vCol = "" then
'couleur bleue par défaut
vCol = "012147"
end if

vW = Request.QueryString("w")

' Création de l'objet OverPower
set ILIB = server.createobject("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.FontAntialiasing = true
if vW = "" then
ILIB.width = ILIB.GetTextwidth(vStr)+4
else
ILIB.width = vW
end if
ILIB.height = ILIB.GetTextHeight(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.PictureBinaryWrite 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
 
B

Bojidar Alexandrov

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
 
S

staz003

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...
 
B

Bojidar Alexandrov

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


Martin Roy said:
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...
 
S

staz003

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.ImageLib 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...
 
B

Bojidar Alexandrov

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 said:
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.ImageLib 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...
 
P

Patrice

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


--
 
B

Bob Lehmann

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 said:
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.ImageLib 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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top