Change Text Size in Form on Client?

I have a Form which contains a tables with text in them that will only be used on the Notes Client. Everything looks great when viewing in the Client with Default settings. However, about 40% of our users have their notes.ini font setting to +4

This throws the text inside my table all out of whack! Can I temperarily force the font/size when my form is viewed using CSS or other? If not, can I adjust all my font sizes before rendering the page based on the users .ini setting? For example, if a user has their .ini setting set to +4, my page would see that and adjust itself to -4.

Below is a snippet of code I use in a action button to adjust the users .ini font size. But you must restart notes in order for it to take effect, thus its not very efficent. Maybe someone can modify it to adjust the text on my form based off the .ini?


Sub Click(Source As Button)

Dim session As New NotesSession

Dim strCurrent As String

Dim strNew As String



Const INIVAR = "Display_font_adjustment"

Const FONT_PROMPT = "Please enter the new font size you require. " &_

"Remember this is relative, so '3' = a size 3pt bigger than before."

Const END_MSG = "All done - you'll need to restart Notes to see the change."

Const COMPLETE = "Font Change Complete"



strCurrent = session.GetEnvironmentString(INIVAR, True)

If strCurrent = "" Then

	strCurrent = "default"

End If



strNew = Inputbox(FONT_PROMPT,"New Font Size", strCurrent)



' // Assume they cancelled

If strNew = "" Then Exit Sub



' // Otherwise, lower-case the value (to cope with "DEFAULT") & set

strNew = Lcase(strNew)

If strNew = "default" Then

	strNew = ""

End If



Call session.SetEnvironmentVar(INIVAR, strNew, True)

Messagebox END_MSG, 0, COMPLETE

End Sub

Subject: Change Text Size in Form on Client?

People who have set a font adjustment of +4 have done it because they have trouble seeing smaller type onscreen. If it were practical to do what you are asking, it still would be very, very wrong. If your design depends ona particular font size, then your design needs to change. Your users’ accessibility needs far outweigh your aesthetic sensibilities.

Subject: * What Stan said.

Subject: but…

(Head down & kicking the dirt), I agree …to a point.

But have you ever seen +4? One word fills a quarter of the screen. I say if you need bigger fonts, than lower your resolution. At that size even the Lotus app itself is whacky. Running 1280x1024 with a +4 font is just as wrong to me and its going to be nearly impossible to design around. Even If I only shrink my font size by

-1 or -2 I can work with that.

Thanks.

Subject: So don’t design to it

Much as you may want your application beautiful, people don’t switch to +4 because they think it looks good, they do it so they can see it. Unfortunately, people who do so are probably sadly used to reading writing that is crammed in and doesn’t look “right”. In an ideal world, you would find a way to make it look good at all resolutions, but if you can’t, don’t take away their ability to read.

Changing resolutions good enough in many cases, and makes navigation practically impossible.

Subject: So don’t design to it?

This Forum is a great tool when answered properly. Every now and again youll get people who “therorize” and dodge the question. I didnt ask for advise on whether or not I should do it, only how to do it? Ill look elsewhere, thanks.

Subject: *And sometimes it is worth listening even when an answer isn’t exactly what you asked for

Subject: RE: Change Text Size in Form on Client?