Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbscript - manipulating default text font and color from vbscript.

Status
Not open for further replies.

tnall

IS-IT--Management
Nov 12, 2003
5
US
hello my fellow fellows

i am looking to detect a browsers default text font and color from vbscript. then i want to set/delete/add fonts
and then set/change font colors at leisure.

i am writing a subroutine within a "server" software package called screen monkey from a company called NBOS.

screen monkey is a "RPG" server that simulates paper and pencil RPG's-kind of like D&D or AD&D. its like a graphical MUD-kindof.

anyway, i am writing a language subroutine that will intercept what a player is typing(saying) to someone else and give them an option to say it in another language
like elf or dwarf.

basically it will add another dimension to this game.

let me restate the main idea of my thread

i am looking to detect a browsers default text font and color from vbscript. then i want to set/delete/add fonts
and then set/change font colors at leisure.

the browser that me and the players will be using is internet explorer. i do know that inside HTML you can use the <font> tag with face=latin and it will make the text shift to that font.

but what i really want is to hit the brower and detect/change the default font and color.

and then delete/add and set a font of my choice.

if you want to know more email me and i will go into detail.

 
[ol]
[li]You will have a security problem.[/li]
[li]You will upset a lot of people (like me) if you do manage to change the defaults.[/li]
[li]Why do you want to change the defaults? What's wrong with using the built-in features of HTML/CSS to do what you want? That is what they are for.[/li]
[li]Don't use the [tt]<font>[/tt] tag. Use the stylesheets (CSS), to acheive what you want.[/li]
[li]Using this method you can fiddle with the fonts for your application at your leisure and you won't upset other people.[/li]
[/ol]
I've set the defaults on my machine to what I want for pages that don't specify fonts and colours: I don't mind anyone using the features of HTML/CSS properly to render a page in the manner they want. Knowing that your game would alter my defaults would be a very good reason for not playing it. [smile]

________________________________________
[hippy]Roger J Coult; Grimsby, UK
In the game of life the dice have an odd number of sides.
 
just thought i would fill everyone in on my efforts with the above font manipulation.

i wrote a wsh scipt that would search the font directory
and move the fonts i want to a temporary location.

no i can control exactly what fonts my players will be
able to use.

i create my own fonts-thanks font creator 2.3. i built
fonts of several types- common font with limited characters, and elvish font and a dwarvish font. now when a player types in an elvish font if the listening player does not have the approiate font loaded, he will see gibberish on the screen.

you people were so worried about security and such.

the game is on a local network, so i can montior my players activities wih logs, so no biggie.
 
just thought i would fill everyone in on my efforts with the above font manipulation.

i wrote a wsh scipt that would search the font directory
and move the fonts i want to a temporary location.

now i can control exactly what fonts my players will be
able to use.

i create my own fonts-thanks font creator 2.3. i built
fonts of several types- common font with limited characters, and elvish font and a dwarvish font. now when a player types in an elvish font if the listening player does not have the approiate font loaded, he will see gibberish on the screen.

you people were so worried about security and such.

the game is on a local network, so i can montior my players activities wih logs, so no biggie.
 
The security problem was to do with changing the &quot;default&quot; font in IE. You can, of course, load new fonts for pages to use.

[tt]________________________________________________________________
[pc2]Roger
Life is a game of cards in which the deck contains only jokers.[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top