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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Windows font size

Status
Not open for further replies.

sicohne

Technical User
Jun 30, 2003
51
GB
Is there any way I can get my web app. to determine whether a user has their windows fonts set to larger and change the size of the text on the web form accordingly?
 
You could always fix the size of the font within your web page code (against each label, etc. or by using cascading style sheets).
Hope that this proves useful to you.
Steve
 
I don't think I explained properly (or I'm misunderstanding your reply, which is quite possible).

I have 2 pc's. One has the text size (In "Control Panel -display - Settings - advanced". The bit that controls the size of the text under your icons on the desktop) set to standard sized fonts, the other has it set to large.

If I set a label's text size to medium it appears normal on the first pc, but looks as though the second pc has set Explorer's text size to largest.

I need it to appear the text same on both pc's
 
You should be able to set the Font against a Label (or any component) to be a nominated size - i.e. '12pt'
Steve
 
tried that and unfortunately the same thing happened :(
 
I'm stumped then. I'd be interested to know other people's suggestions ... :)
Steve
 
OK, setting the font size to 12px worked :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top