In Windows (NT/200/XP at least) screen fonts seem not to be scaled 
properly. The default font size (12pt) is rendered like 9pt fonts in 
native Windows applications.

The nasty effect is that similar characters (numeral '1' vs. lowercase 
'l' and numeral '0' vs. uppercase 'O') are undistinguishable in the 
default monospace font (apparently Courier New).

Perhaps my experience is just another Murphy's Law anecdote, but the 
fact is that I found an (apparently) duplicate in a list of 
abbreviations ('lst' for 'listing' and '1st' for 'first') in some 
document, deleted one of them, found my data wrong, and spent a lot of 
time figuring out what I did wrong, and diagnosing the problem.

Probably the discrepancy in scaling is due to a discrepancy in the 
assumed screen resolution. The Windows default is 96 dpi. XXE perhaps 
assumes 72-75 dpi.

A suggestion would be to assume 96 dpi as the default screen resolution 
(and reduce the default font size to 10pt to preserve appearance) or to 
increase the default font size to 13pt (that is rendered like 10pt in 
native Windows applications). A 10pt Courier New scaled to 96 dpi is the 
smallest size that gives a (minimum) visual distinction between the 
mentioned similar character pairs.

Please find attached sample files to test the fonts appearance.

Hope this would help others.
-- 
------------------------------------------------------------------------
Manuel Collado Machuca                    | Facultad de Informatica UPM
Universidad Politecnica de Madrid         | Campus de Montegancedo
Dep. LSIIS                                | Boadilla del Monte
Tel.+34-91-336.74.57 Fax.+34-91-336.74.12 | 28660  MADRID  -  SPAIN
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: monospace.css
Type: text/css
Size: 54 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040607/e9f46760/attachment.css
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sans-serif.css
Type: text/css
Size: 55 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040607/e9f46760/attachment-0001.css
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: serif.css
Type: text/css
Size: 50 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040607/e9f46760/attachment-0002.css
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testfont.xml
Type: text/xml
Size: 320 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040607/e9f46760/attachment.xml
 

Reply via email to