473,714 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Avoiding Text Anti-Aliasing

Hi,
I have some text on a page in a small font. The font size has been OK in
other applications, but in a web browser, the legebility suffers due to the
anti-aliasing. Is there a way to turn off anti-aliasing for small text from
the css, or is there something else I can do to make small text more
legible?

(Note, the text really does have to be small, as that is what is required
for the web-application. It is a system for use on screens of a fixed size,
in a specific place, not for general consumption)

Thanks,
Martin

--
Martin Eyles
ma**********@NO SPAM.bytronic.c om
Nov 9 '05 #1
22 10767
"Martin Eyles" <ma**********@N OSPAM.bytronic. com> wrote:
I have some text on a page in a small font.
How small?
The font size has been OK in
other applications, but in a web browser, the legebility suffers due to the
anti-aliasing. Is there a way to turn off anti-aliasing for small text from
the css,
Font anti-aliasing is typically an OS feature, a user may have (some)
control over it, you as an author do not (and that's a good thing).
or is there something else I can do to make small text more
legible?
If your text is illegible then it's to small. First make sure that you
use the user's default size for normal body text, only for non essential
content is it acceptable to de-emphasize text by reducing it's size.
This should be done in moderation, I'd consider anything below 80% of
the user's default unacceptably small.
(Note, the text really does have to be small, as that is what is required
for the web-application.
Irrelevant.
It is a system for use on screens of a fixed size,


It's unlikely to be a web-application (in which case you have no idea on
what hardware it is going to run), *and* something like a dedicated
kiosk system.

--
Spartanicus
Nov 9 '05 #2
Martin Eyles wrote:
Hi,
I have some text on a page in a small font. The font size has been OK in
other applications, but in a web browser, the legebility suffers due to the
anti-aliasing. Is there a way to turn off anti-aliasing for small text from
the css, or is there something else I can do to make small text more
legible?


GIF or PNG
Nov 9 '05 #3
"Spartanicu s" <in*****@invali d.invalid> wrote in message
news:85******** *************** *********@news. spartanicus.utv internet.ie...
"Martin Eyles" <ma**********@N OSPAM.bytronic. com> wrote:
I have some text on a page in a small font.


How small?


ok, I put a sample at
http://www.bytronic.com/tests/test5.png

This is the font size I am intending to use.
The font size has been OK in
other applications, but in a web browser, the legebility suffers due to theanti-aliasing.
When I use this font in some other development systems, it isn't
anti-aliased, and the stroke of the text is then a pixel wide in solid
black, rather than what you see here
Is there a way to turn off anti-aliasing for small text from
the css,


Font anti-aliasing is typically an OS feature, a user may have (some)
control over it, you as an author do not (and that's a good thing).


This may be possible, is there an option in MSIE (the browser all the
customers will be using).
or is there something else I can do to make small text more
legible?


If your text is illegible then it's to small. First make sure that you
use the user's default size for normal body text, only for non essential
content is it acceptable to de-emphasize text by reducing it's size.
This should be done in moderation, I'd consider anything below 80% of
the user's default unacceptably small.


All the text sizes for the entire system is being specified in pixels. This
is for a fixed layout on 1024*768, and is essentially replacing some other
software, and looking as close as possible to it.
(Note, the text really does have to be small, as that is what is required
for the web-application.


Irrelevant.


Entirely relevant, it is a requirement of the system
It is a system for use on screens of a fixed size,


It's unlikely to be a web-application (in which case you have no idea on
what hardware it is going to run), *and* something like a dedicated
kiosk system.


Unlikely it may sound, but true. It will run on closed systems, like a
kiosk, but some of these may be off site, accesing pages via the internet.

Thanks for your help,
Martin

--
Martin Eyles
ma**********@by trNOSPAMonic.co m
Nov 9 '05 #4
"C A Upsdell" <""cupsdellXXX\ "@-@-@XXXupsdell.com "> wrote in message
news:6a******** *************** *******@rogers. com...
Martin Eyles wrote:
Hi,
I have some text on a page in a small font. The font size has been OK in other applications, but in a web browser, the legebility suffers due to the anti-aliasing. Is there a way to turn off anti-aliasing for small text from the css, or is there something else I can do to make small text more
legible?


GIF or PNG


The text is comming from a database, so could say anything. Is the a way of
turning any text into GIF or PNG on the server side (The back end is written
in VB.NET)? What kind of badwidth penalty would I suffer (there are quite a
few labels per page, which could all require a unique image, although they
would be 4 colour at most (text, background and border colours))

--
Martin Eyles
ma**********@NO SPAM.bytronic.c om
Nov 9 '05 #5
"Martin Eyles" <ma**********@N OSPAM.bytronic. com> wrote...
"Spartanicu s" <in*****@invali d.invalid> wrote...
"Martin Eyles" <ma**********@N OSPAM.bytronic. com> wrote:
I have some text on a page in a small font.


How small?


ok, I put a sample at
http://www.bytronic.com/tests/test5.png

This is the font size I am intending to use.
The font size has been OK in
other applications, but in a web browser, the legebility suffers due to theanti-aliasing.


When I use this font in some other development systems, it isn't
anti-aliased, and the stroke of the text is then a pixel wide in solid
black, rather than what you see here


Added an example of how I want it to look at
http://www.bytronic.com/tests/test6.png

--
Martin Eyles
ma**********@NO SPAM.bytronic.c om
Nov 9 '05 #6
"Martin Eyles" <ma**********@N OSPAM.bytronic. com> wrote:
ok, I put a sample at
http://www.bytronic.com/tests/test5.png

This is the font size I am intending to use.
>Is there a way to turn off anti-aliasing for small text from
>the css,
Font anti-aliasing is typically an OS feature, a user may have (some)
control over it, you as an author do not (and that's a good thing).


This may be possible, is there an option in MSIE (the browser all the
customers will be using).


A screenshot doesn't help. You'd have to put up a sample of the actual
code, list what version of IE is going to be used, what settings it
uses, what OS it runs on, and what the font settings of the OS are.

On the MS OS's that I'm familiar with (W98 & Windows 2000), font
anti-aliasing needs to be explicitly enabled by the user (Control Panel Display > effect tab > "Smooth edges of screen fonts") and it only

works on larger font sizes, smaller fonts are not affected.
It's unlikely to be a web-application (in which case you have no idea on
what hardware it is going to run), *and* something like a dedicated
kiosk system.


Unlikely it may sound, but true. It will run on closed systems, like a
kiosk, but some of these may be off site, accesing pages via the internet.


In that case it isn't a "web-application", your application simply uses
the internet. Note the "www" in this group's name, strictly speaking
questions on private systems are off-topic in this group.

--
Spartanicus
Nov 9 '05 #7
Martin Eyles wrote:

[...] Is there a way to turn off anti-aliasing for small text from
the css, [...]

No.
Use Verdana or Vera Sans? They have a large x-height that makes them
look bigger. And Verdana was designed for tiny size on a monitor. Of
course, not everyone has those fonts loaded.
Font-blurring, er, anti-aliasing, is an option of the OS' graphics
system. Not something that can be controlled from a browser.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Nov 9 '05 #8
Martin Eyles wrote:
the css, or is there something else I can do to make small text more
legible?


GIF or PNG


The text is comming from a database, so could say anything. Is the a way of
turning any text into GIF or PNG on the server side (The back end is written
in VB.NET)? What kind of badwidth penalty would I suffer (there are quite a
few labels per page, which could all require a unique image, although they
would be 4 colour at most (text, background and border colours))

There is the gd library <http://www.boutell.com/gd/>. It exists as a
loadable library or a standalone app. It has been a part of PHP for a
while, and can be used through CGI calls. I do not know if there is a VB
counterpart.
Such a method has its drawbacks, of course.
- the increased server processing
- the text cannot wrap since it is not text anymore
- the user cannot resize the text to read it

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Nov 9 '05 #9
In article <11************ *@corp.supernew s.com>,
"Martin Eyles" <ma**********@N OSPAM.bytronic. com> wrote:
ok, I put a sample at
http://www.bytronic.com/tests/test5.png

This is the font size I am intending to use.
Ouch! Unreadable. First thing I did after trying to read it in the top
left corner of Safari was to bring it up in Opera and magnify 200%
Unlikely it may sound, but true. It will run on closed systems, like a
kiosk, but some of these may be off site, accesing pages via the internet.


Put Opera (it is free) on the systems, running in full Kiosk mode.
Pages still show in the size you have selected, however any customer
with problems viewing it (and who knows the Opera zoom code) can zoom
enough to be able to read it?

On your existing text size, were I one of your customers, I'd now be a
customer someplace else.

--
http://www.ericlindsay.com
Nov 9 '05 #10

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

Similar topics

4
2444
by: Doug R | last post by:
I'm trying to create an anti-automation feature to prevent scripts from running reports on our website by requiring users to enter a code from an image (like Yahoo e-mail sign-up, or Network Solutions WHOIS search). I'm using Python as the scripting language in the ASP page, and using PIL to generate the image. The code is stored into a session variable, which is used to check the user's entry. It works fine the first time around, but...
5
2321
by: Les Juby | last post by:
maybe this is a real Newbie Question but I'm sure I got around this in the past but can't remember how. If a form is situated in normal HTML then a paragraph tag is inserted after the Submit button. If the form is placed in a table then the preceding paragraph tag is supressed but the trailing paragraph space is still inserted. Any suggestions please.?
5
1932
by: Lex | last post by:
As you may have seen in other posts I have a C# app that has custom shortcuts so I need to OwnerDraw my MenuItems. Thanx to vJ and Mick for the tips so far. I am almost there :-) My last (I hope) issue is aligning the menu text and shortcut text properly. I need it to line up as if there are two columns - 1 for the menu text and one for the shortcut text. The menu text is left justified in col 1 and shortcur text is left justified...
17
2278
by: rgoya | last post by:
Peace be with you! About a year ago, I created a JavaScript which turns any web site into an online anti-war protest: http://www.geocities.com/rgoya/javascript/PROTEST.HTM I have recently revamped the anti-war quotes quiz: http://www.geocities.com/rgoya/javascript/PROTCODE.HTM#usaquiz Please feel free to
11
5247
by: Mark Schneider | last post by:
I'm trying to avoid using <table> for formatting purposes where other, reasonable means exist. I'm stuck trying to find a way to find an equivalent for the code below. <table align="center"> <tr> <td>abc</td> </tr> </table>
4
12165
by: AP | last post by:
Hi, I have a class that I wish to serialize to XML, part of which looks like this: public class TitleNotification { public string NoNameSpaceSchemaLocation = http://www.pdr.com\nhttps://extw3c.pdr.com/prism/b2b/schemas/TitleNotification.xsd;
2
1184
by: Tom | last post by:
I'm making a database input form that has many text boxes bound to DB fields. I've written a validatedTextBox class that inherits from textBox but validates the input data. It does this with code that overrides the "onValidating" event of textbox. It all works great except if I exit the form (by clicking the x in the upper right corner) with invalid data in a textbox, my onValidating routine gets called and I am prevented from...
2
1785
by: m.k.ball | last post by:
Thanks Rich - that's great. Before I found this group, I thought I had a reasonable understanding of SQL (well, MySQL's implementation of it, at least) but the truth is there are great chunks that I have no knowledge of. I've read three or four books about MySQL and PHP all of which gave (in retrospect) very basic examples of the use of SQL, and focussed on features such as MySQL's date and time handling functions that are well covered in...
27
2625
by: Cephalobus_alienus | last post by:
Hello, I know that macros are evil, but I recently came across a problem that I couldn't figure out how to solve with templates. I wanted to create a set of singleton event objects, and wrote the following macro: #define GET_SINGLETON_EVENT_FUNCTION(FUNCTION_NAME,MANUAL_RESET,\ INITIAL_STATE,EVENT_NAME) \
12
3482
by: Bill Mill | last post by:
Hello all, I want to have a user able to eval code in a text box. However, if he accidentally types "while(1) { i=0; }" and hits "run", I also want him to be able to hit a stop button such that his browser does not go into an infinite, soul-crushing, interface-locking loop. The stop button would not need to be instantly responsive, but of course the more responsive the better. Short of writing a javascript-in-javascript interpreter,...
0
8713
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9187
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9079
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9032
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7957
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5961
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4730
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.