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

Text rendering problem with higher monitor DPI

I just purchased a Samsung 930B flat-panel monitor. Its *recommended*
resolution is 1280x1024.

I was previously running at 1024x768, but I also work with graphics. Any
images that were square or circle looked about 10% taller than they should
be. Naturally, correcting the screen resolution to the monitor's native of
1280x1024 fixed this and displayed more accurate proportions.

Because this change made all screen elements microscopic, my next step was
upping the monitor's DPI setting to Large (120dpi). Unfortunately, this
causes disproportion in the text in my web site, and I cannot decide whether
to change Internet Explorer's text size from Medium to Smaller. (At 120dpi,
Smaller is the closest match to where I was before).

I believe my best bet is to code the text size in my web site to compensate
for these changes. Can anyone give me any options which may help keep my web
site's text consistent through changes in resolution and DPI?
Feb 16 '06 #1
6 4315
Gazing into my crystal ball I observed "Yeah" <ye**@positive.net> writing
in news:YASIf.2403$et.2210@dukeread12:
I just purchased a Samsung 930B flat-panel monitor. Its *recommended*
resolution is 1280x1024.

I was previously running at 1024x768, but I also work with graphics.
Any images that were square or circle looked about 10% taller than they
should be. Naturally, correcting the screen resolution to the monitor's
native of 1280x1024 fixed this and displayed more accurate proportions.

Because this change made all screen elements microscopic, my next step
was upping the monitor's DPI setting to Large (120dpi). Unfortunately,
this causes disproportion in the text in my web site, and I cannot
decide whether to change Internet Explorer's text size from Medium to
Smaller. (At 120dpi, Smaller is the closest match to where I was
before).

I believe my best bet is to code the text size in my web site to
compensate for these changes. Can anyone give me any options which may
help keep my web site's text consistent through changes in resolution
and DPI?


Yes, don't set a font size at all, or set it in percentages, eg:

body {font-size:100%}
h1 {font-size:130%}
..legaleze {font-size:85%}

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Feb 16 '06 #2
In article <YASIf.2403$et.2210@dukeread12>, "Yeah" <ye**@positive.net>
wrote:
I just purchased a Samsung 930B flat-panel monitor. Its *recommended*
resolution is 1280x1024.

[snip complaints that font size in web browser is now too small]

I believe my best bet is to code the text size in my web site to compensate
for these changes. Can anyone give me any options which may help keep my web
site's text consistent through changes in resolution and DPI?


Are you the only person who visits your web site? If so, then, heck,
specify the font size in points, and do whatever makes you happy.

Oh, wait. You say your web site is on the Internet, and available to the
public? Well, in that case, it'd be quite selfish of you to change the
size of text that _all_ of your visitors will see, simply because your
own personal browsing situation has changed. In that case, you should
adjust your own _browser's_ settings so that text on your web site (and
presumably, most others) is at a size that you can read easily, and
trust that your visitors will do the same.

Forcing some font size on your visitors in order to improve your own
personal browsing situation is not only a crude solution, it's rude.

--
Joel.
Feb 16 '06 #3
Yeah wrote:
I just purchased a Samsung 930B flat-panel monitor. Its *recommended*
resolution is 1280x1024.

I was previously running at 1024x768, but I also work with graphics. Any
images that were square or circle looked about 10% taller than they should
be. Naturally, correcting the screen resolution to the monitor's native of
1280x1024 fixed this and displayed more accurate proportions.

Because this change made all screen elements microscopic, my next step was
upping the monitor's DPI setting to Large (120dpi). Unfortunately, this
causes disproportion in the text in my web site, and I cannot decide whether
to change Internet Explorer's text size from Medium to Smaller. (At 120dpi,
Smaller is the closest match to where I was before).

I believe my best bet is to code the text size in my web site to compensate
for these changes. Can anyone give me any options which may help keep my web
site's text consistent through changes in resolution and DPI?


Yeah,

See http://pages.prodigy.net/chris_beall...nt%20size.html.

Chris Beall

Feb 16 '06 #4
In article <Xn****************************@69.28.186.121>, Adrienne
Boswell <ar********@sbcglobal.net> writes
body {font-size:100%}


Pardon my ignorance (I mean that, I wasn't being sarcastic), but
wouldn't this be the default anyway? Isn't it pointless setting this?

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 20 '06 #5
Alan Silver wrote:
In article <Xn****************************@69.28.186.121>, Adrienne
Boswell <ar********@sbcglobal.net> writes
body {font-size:100%}


Pardon my ignorance (I mean that, I wasn't being sarcastic), but
wouldn't this be the default anyway? Isn't it pointless setting this?


Yes, it is the default, but as I understand it, doing the setting helps
alleviate an IE bug, where that browser tends to get confused if it is
not declared.

It also shows your intent to observe user defaults to anyone reading
your code.

--
-bts
-Warning: I brake for lawn deer
Feb 20 '06 #6
In article <fZ******************@bgtnsc04-news.ops.worldnet.att.net>,
Beauregard T. Shagnasty <a.*********@example.invalid> writes
Alan Silver wrote:
In article <Xn****************************@69.28.186.121>, Adrienne
Boswell <ar********@sbcglobal.net> writes
body {font-size:100%}


Pardon my ignorance (I mean that, I wasn't being sarcastic), but
wouldn't this be the default anyway? Isn't it pointless setting this?


Yes, it is the default, but as I understand it, doing the setting helps
alleviate an IE bug, where that browser tends to get confused if it is
not declared.

It also shows your intent to observe user defaults to anyone reading
your code.


Thank you. That makes it clear. I shall add that line in future.

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 20 '06 #7

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

Similar topics

6
by: David Opstad | last post by:
I have a question about text rendering I'm hoping someone here can answer. Is there a way of doing linguistically correct rendering of Unicode strings in Python? In simple cases like Latin or...
8
by: James Stroud | last post by:
Hello All, I would like for a tkinter text widget to be aware of how big the frame that contains it is, then I would like for it to reset its width to the appropriate number of characters when...
6
by: m | last post by:
Hello, I have an application that processes thousands of files each day. The filenames and various related file information is retrieved, related filenames are associate and placed in a linked...
7
by: Yeah | last post by:
Ever since I upgraded my Windows display to 120 DPI (kind of a necessary change), fonts have been clearer and graphics have been crisper. However, the 25% automatic increase in the text size on my...
14
by: Roger Withnell | last post by:
How to I find out what size text the browser is set to? Thanks in anticipation.
29
by: Michael Bulatovich | last post by:
Is there a way to use CSS to format "plain" text in an html document. By plain I mean text which is not contained by <por <h#tags. Is there no way to control how this stuff is rendered? tia
28
by: eastcoastguyz | last post by:
I'm a newbie to CSS, so be kind. :-) I have looked at examples of CSS and have not seen this yet. How can you change the colors of the text in the same word in CSS? For example, when how can you...
12
by: Boris Borcic | last post by:
Hello, I am trying to use UI Automation to drive an MS Windows app (with pywinauto). I need to scrape the app's window contents and use some form of OCR to get at the texts (pywinauto can't...
6
Atli
by: Atli | last post by:
Hi everybody. I have a JavaScript function that is meant to fade in a HTML element. To do this I use the standard "opacity" style, plus the non-standard IE "filter: alpha" monstrosity. This...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.