473,320 Members | 1,953 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,320 software developers and data experts.

Font-size buttons

I came upon this trick: a usemap with two buttons for
changing the page's font size:

============
<map name="fontmap" id="fontmap">

<area shape="rect" coords="111,1,126,15"
href="http://niemanwatchdog.org/index.cfm?fontsize=up">

<area shape="rect" coords="127,0,143,14"
href="http://niemanwatchdog.org/index.cfm?fontsize=down">

</map>

============

The page itself is: http://niemanwatchdog.org/index.cfm

Two questions: (1) how does it work? New pages?
What's the question mark ( "cfm?font..." ) do?

and (2) is this idea useful?

The user *may* have the ability to change font size or
do a zoom in the browser.
This page button trick may be more convenient.

Mason C

Oct 6 '05 #1
6 1864
Mason A. Clark wrote:
and (2) is this idea useful?


No.

It's done server-side, and it might be done by serving a single new
line of CSS on demand, not even changing the "page" itself. However it
still breaks the notion of font-size being a "client side" control,
which is very important to maintain.

You might really want font size buttons added to a page and there are
good usability reasons why you might, if you have an audience that
needs it and doesn't know there's already a menu option. If you do
though, keep it client-side and link to the browser's menu functon (I
think this can already be done for Mozillas). For other browsers, pop
up a message and say "Look under your text size menu for a handy
feature"

Oct 6 '05 #2
Mason A. Clark wrote:
I came upon this trick: a usemap with two buttons for
changing the page's font size:

============
<map name="fontmap" id="fontmap">

<area shape="rect" coords="111,1,126,15"
href="http://niemanwatchdog.org/index.cfm?fontsize=up">

<area shape="rect" coords="127,0,143,14"
href="http://niemanwatchdog.org/index.cfm?fontsize=down">

</map>

============

The page itself is: http://niemanwatchdog.org/index.cfm

Two questions: (1) how does it work? New pages?
What's the question mark ( "cfm?font..." ) do?

and (2) is this idea useful? (snip) This page button trick may be more convenient.

Mason C

Mason,

It works by sending a modified page from the server. Following the main
style section is a second <style> section that sets font-size to 'small'
or 'x-small' etc. It appears that this value is modified, then the
entire page is resent by the server (based on the time it takes to respond)

A .cfm filetype indicates use of the Cold Fusion development tool.

? is a delimiter between the end of the URL and attached data. When you
click on one of the links, the entire string is sent to the server,
which can look separately at the data being passed (the part after the
?) and determine what you want it to do. In this case fontsize=up.

Note that the server is setting an ABSOLUTE value (small, large, etc.)
whereas the user interface is a RELATIVE value (up, down). This implies
that the server knows what font size is currently in use. That is done
by setting a cookie on the user's system (more overhead) to remember the
currently-in-use font size. Each time you change sizes using this
interface, the cookie is fetched to see what that current size is. Of
course this means the function will not work if the user has disabled
cookies.

I would not view this as useful or more convenient than using the
font-size capability of your browser.

Chris Beall

Oct 6 '05 #3
Thanks for the instructive responses.

Mason C
Oct 6 '05 #4
On Thu, 06 Oct 2005 09:42:26 GMT, Mason A. Clark
<ma*************@ix.netcom.com> wrote:
I came upon this trick: a usemap with two buttons for
changing the page's font size:

============ ....============

Two questions: (1) how does it work? New pages?
What's the question mark ( "cfm?font..." ) do?

and (2) is this idea useful?
I suggest that something along the lines of
http://www.xs4all.nl/~sbpoley/main/adjust.html is a lot more useful.

(Having written that page a long time ago I suddenly got a bunch of
messages thanking me for it recently. Apparently it briefly got up to
first position in Google).
The user *may* have the ability to change font size or
do a zoom in the browser.
AFAIK *every* graphical browser has that sort of ability (as long as the
author doesn't screw things up by using absolute units).
This page button trick may be more convenient.


I doubt it.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Oct 6 '05 #5
On Thu, 06 Oct 2005 09:42:26 GMT in
comp.infosystems.www.authoring.html, Mason A. Clark favored us
with...
I came upon this trick: a usemap with two buttons for
changing the page's font size:

and (2) is this idea useful?


Not unless the web site visitor is too stupid to operate his or her
own browser.

And in that case, they're probably too stupid to understand your
content anyway.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Oct 6 '05 #6
On Thu, 6 Oct 2005, Stephen Poley wrote:
On Thu, 06 Oct 2005 09:42:26 GMT, Mason A. Clark
<ma*************@ix.netcom.com> wrote:
The user *may* have the ability to change font size or
do a zoom in the browser.


AFAIK *every* graphical browser has that sort of ability (as long as the
author doesn't screw things up by using absolute units).


What's more: once they've found it and learned how to use it, it works
on every web site (modulo the issue of absolute units, anyway).
This page button trick may be more convenient.


I doubt it.


Having to use a different user interface on each and every web site
which offers such a feature is not exactly the most productive way to
proceed, after all.

Sounds like something that would please marketing, though:- offering
the customer something that they'd already got, but with a competitive
difference that, unlike the one the customer already had, this one
wouldn't work with anyone else's products. Let me join you in a
grumble.
Oct 6 '05 #7

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

Similar topics

1
by: Justin Van Patten | last post by:
Hello, I am having trouble converting a LOGFONT structure to a System.Drawing.Font object. I'm calling SystemParametersInfo to get the LOGFONT lfntSMCaptionFont from a NONCLIENTMETRICS...
10
by: Richard R Plourde | last post by:
I've got a problem that IE doesn't seem to use the entire font unicode subgroups from a hinted font file. When I display the following web page in IE 6 as opposed to Firefox 1.0 PR. Check out...
3
by: Barry Anderberg | last post by:
I'm using the .NET Memory Profiler by Sci Tech and I wrote a little test application to verify something odd I observed and it appears that System.Drawing.Font fails to dispose of its FontFamily. ...
3
by: Wim | last post by:
I would like to store the ListView font in the XML config file. So I have a string variable listFont that stores the font (font.ToString()). It must be a string variable because a Font object...
3
by: pnp | last post by:
I have created a coposite user control of a text box and a label. I have exposed the font of the textbox property through a property of the control but every time I try to change that through the...
4
by: BobAchgill | last post by:
Is it possible to use a font that is not stored in the windows font directory? I would like to use a font that is stored in my application directory... But this does not seem to work... ...
6
by: BobAchgill | last post by:
Has anyone had success with writing text using a private font that was not already installed to the system? When I try the example code in NET Framework Developer's Guide called “Creating a...
1
by: Henry Jones | last post by:
I found some code to change the font on a button to bold: private void btnBold_Click(object sender, System.EventArgs e) { btnCalculate.Font = new Font(btnCalculate.Font, ...
24
by: Tony Girgenti | last post by:
Hello. Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on a windows XP Pro, SP2. Before printing a document, i want to set the font to a font that is only available...
16
by: carlbernardi | last post by:
Hi, I was wondering if there is way use a font that is somehow kept in the code instead of having to load it? I am working on a single script that so far can produce images and html but I have...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.