473,387 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

On-The-Fly ImageCreation Font conflict

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
Jul 19 '05 #1
7 1752
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" <St*****@hotmail.com> wrote in message
news:d8**************************@posting.google.c om...
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

Jul 19 '05 #2
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...
Jul 19 '05 #3
You do not understand the entire process - with server side script (ASP) you
generate HTML that client's browser render!
"Martin Roy" <st*****@hotmail.com> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl...
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...
Jul 19 '05 #4
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...
Jul 19 '05 #5
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" <st*****@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
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...
Jul 19 '05 #6
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" <bo**************@kodar.net> a écrit dans le message de
news:ud*************@tk2msftngp13.phx.gbl...
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" <St*****@hotmail.com> wrote in message
news:d8**************************@posting.google.c om...
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


Jul 19 '05 #7
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" <st*****@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
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...
Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chris Krasnichuk | last post by:
Hello every one, Does anyone know how to make php work on your computer? please reply I need help Chris
20
by: Chris Krasnichuk | last post by:
hello, Does anyone know how I make php work on "my" computer? I made a mistake in my last post so I fixed it here. Chris
2
by: Patricia | last post by:
I am a new Oracle user. I am trying to install Oracle 9i Personal Edition on Windows ME; however, I am getting the following error during the installation: Oracle Database Configuration Assistant...
57
by: Bing Wu | last post by:
Hi all, I am running a database containing large datasets: frames: 20 thousand rows, coordinates: 170 million row. The database has been implemented with: IBM DB2 v8.1
1
by: gndzkdr | last post by:
hi all, i m new on Sql and i have a project related to C# and Sql. i have to do a project which must work on LAN, and there must be only one database file on main computer(Server Computer) and...
7
by: SHC | last post by:
I'm in need of some javascript to load two pages into two seperate iframes which are on two seperate and different pages. Rather complicated I know (and easier done in one frameset), but caused...
8
by: PhongPham | last post by:
Hello, Info relate: OS : uclinux Platform : unix version 2.4.22 (or 2.4.26) Chip on board : ARM7 I want to get a python package on network to "make" in linux (Fedora core 1 or anything...
8
by: Lemune | last post by:
Hi, I'm developing window service application on C# 2005. The service is to read a new excel file on certain directory, and process it to database. The service work find on XP. But when I...
19
by: pmw | last post by:
Hi I've got a problem with my current application. I currently use Windows Vista with Visual Studio Express 2008. If I compile the application on Vista, it works fine on Vista, but it doesn't...
16
by: tvnaidu | last post by:
I have these two ON and OFF buttons html code below, based on condition I am displaying status on screen(I have mutliple lines for each LED), my row shifting when some displaying ON and some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.