Image:ClearTypePixels.svg

From Wikipedia, the free encyclopedia

ClearTypePixels.svg (SVG file, nominally 679 × 474 pixels, file size: 561 KB)

[edit] Summary

Close-up comparison of rendered type on a screen with and without ClearType technology applied. Original raster version created by Anthony Atkielski (Agateller)

SVG created by dnet.

I wrote the following PHP script to generate the RGB grid:

#!/usr/bin/php
<?
 
$rows=13;
$cols=38;
$rowheight=18;
$colwidth=6;
$border=0.25;
$order=array('ff0000', '00ff00', '0000ff');
 
print('<'.'?xml version="1.0"?'.'>'); ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<?
 
printf('<svg xmlns="http://www.w3.org/2000/svg" width="%d" height="%d">', $cols*$colwidth, 
$rows*$rowheight);
 
for ($x=0;$x<$cols;$x++) for ($y=0;$y<$rows;$y++) foreach($order as $offset=>$color)
printf('<rect x="%d" y="%d" width="%d" height="%d" style="fill: #%s; stroke: #000000; stroke-width: %gpx;" />',
$colwidth*($x*count($order)+$offset), $y*$rowheight, $colwidth, $rowheight, $color, $border);
 
?></svg>

[edit] Licensing

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current20:23, 16 September 2007679×474 (561 KB)DnetSvg (Talk | contribs) (Close-up comparison of rendered type on a screen with and without ClearType technology applied. [Original raster version http://en.wikipedia.org/wiki/Image:ClearTypePixels.jpg] created by Anthony Atkielski (Agateller) SVG created by dnet)

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):