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

Detecting Text Zoom Events

Hello:

I am trying to design a web page whose graphics content would change
according to the "text Zoom" settings of the user. (Basically the goal
is to use mathematical symbols that automatically resize in response to
zoom events).

Is it possible to detect a zoom change event?

Stefan
Jul 20 '05 #1
4 6503
stef <st******@optonline.net> writes:
I am trying to design a web page whose graphics content would change
according to the "text Zoom" settings of the user.
My browser doesn't have a "text zoom" setting. I assume you refer to the
one in IE.
(Basically the goal is to use mathematical symbols that
automatically resize in response to zoom events).

Is it possible to detect a zoom change event?


No.

What you could do is to give the image size in em's:
<img src="Delta.png" style="height:1em;">
Then changing the font size should also change the image size.

That is, use CSS, not Javascript for it. It is a presentational
aspect, so CSS is the appropriate tool.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
DU
Lasse Reichstein Nielsen wrote:
stef <st******@optonline.net> writes:

I am trying to design a web page whose graphics content would change
according to the "text Zoom" settings of the user.

My browser doesn't have a "text zoom" setting. I assume you refer to the
one in IE.

(Basically the goal is to use mathematical symbols that
automatically resize in response to zoom events).

Is it possible to detect a zoom change event?

No.

What you could do is to give the image size in em's:
<img src="Delta.png" style="height:1em;">
Then changing the font size should also change the image size.

That is, use CSS, not Javascript for it. It is a presentational
aspect, so CSS is the appropriate tool.

/L

Another more simple and more reliable way to work around this issue is
to use Unicode math symbols. If the text size is increased, then the
math symbols will increase too.

Math operators : 2200 to 22FF
Misc. math symbols A: 27D0 to 27FF
Misc. math symbols B: 2980 to 2AFF
etc..

Text is always better than using images of text for many reasons:
interoperability (copy and paste, enlarge text, style text with any css
property, translate text with browser functionalities, etc.), size is
usually 1000% smaller than image, each image require a single, unique
http connection for download, etc.

The only issue remaining is verify browser support for thes math symbols.

DU
Jul 20 '05 #3
In article <c1**********@news.eusc.inter.net>,
DU <dr*******@hotWIPETHISmail.com> wrote:
Lasse Reichstein Nielsen wrote:
stef <st******@optonline.net> writes:

I am trying to design a web page whose graphics content would change
according to the "text Zoom" settings of the user.

My browser doesn't have a "text zoom" setting. I assume you refer to the
one in IE.
Actually, I use Mozilla, which also has one in the "view" menu. I do
believe one can enlarge the text in all browsers.

(Basically the goal is to use mathematical symbols that
automatically resize in response to zoom events).

Is it possible to detect a zoom change event?

No.

What you could do is to give the image size in em's:
<img src="Delta.png" style="height:1em;">
Then changing the font size should also change the image size.

That is, use CSS, not Javascript for it. It is a presentational
aspect, so CSS is the appropriate tool.

/L

Another more simple and more reliable way to work around this issue is
to use Unicode math symbols. If the text size is increased, then the
math symbols will increase too.

Math operators : 2200 to 22FF
Misc. math symbols A: 27D0 to 27FF
Misc. math symbols B: 2980 to 2AFF
etc..

Text is always better than using images of text for many reasons:
interoperability (copy and paste, enlarge text, style text with any css
property, translate text with browser functionalities, etc.), size is
usually 1000% smaller than image, each image require a single, unique
http connection for download, etc.

The only issue remaining is verify browser support for thes math symbols.

DU


Thank you so much for your prompt reponse and suggestions. They
certainly give me a lot to work with! What I plan to do is update an old
project that encoded math in html using gifs and tables:

http://www.ohaganbooks.com/ThirdEdSi...codeindex.html

Hopefully the new incarnation will be more up to date and responsive to
changing the view.
Jul 20 '05 #4
stef <st******@optonline.net> writes:
Actually, I use Mozilla, which also has one in the "view" menu. I do
believe one can enlarge the text in all browsers.


Quite an assumption. Even WebTV or mobile phone browsers?
Incidentally, Opera has no "text zoom". It zooms the entire page,
text, images and all, when it zooms :)

Apart from that, I agree that using proper Unicode glyphs is better than
images, if possible. :)

Good luck.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #5

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

Similar topics

0
by: Suresh Kumaran | last post by:
Hi All, I have a Form which has three tab controls and each tab control has text boxes and combo boxes and Data time picker etc, totalling up to 50 instances in all three tab controls. How do...
0
by: AndyDunning | last post by:
Following the initial load of data into bound controls as my form loads , I want to detect when a user have changed the value of one of the Combo or text box fields etc This will allow me to test...
4
by: Sean Connery | last post by:
Does someone know the syntax to detect when certain function keys are pressed?
10
by: Patty O'Dors | last post by:
Hi In trying to create a RICHEDIT-derived ActiveX control in ATL, I've managed to successfully implement the stock font property, thanks for all your help on this. I'm now stuck on receiving...
1
by: dana lees | last post by:
Hello, I am developing an asp.net c# application. I need to implement a textbox in which the user enters a character (or more then 1) and a dropdown is filled according to that character (it...
0
AaronL
by: AaronL | last post by:
Hi Everyone, I'm writing a Text to Speech program and I was wondering if there was a way for my program to detect O/S events such as a file being opened, window minimized or maximized. The exe...
1
by: jhcruz | last post by:
I'm trying to disable one text box when a user starts entering data in a different text box. Is this even possible? If so can someone point me towards a good example? Thanks, Jaime
1
by: sajitk | last post by:
Guys, I am new to Programming in ASP.net using C#. I have 2 numeric values in 2 text box and i am asked to display the addition value in the third box. I have writing the following code in...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.