<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"	>
<channel>
	<title>Comments on: Squib of the day: line weight</title>
	<atom:link href="http://blogs.gnome.org/metacity/2009/03/11/squib-of-the-day-line-weight/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/metacity/2009/03/11/squib-of-the-day-line-weight/</link>
	<description>"Many window managers are like Marshmallow Froot Loops; Metacity is like Cheerios."</description>
	<lastBuildDate>Sun, 26 Sep 2010 15:08:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Screwtape</title>
		<link>http://blogs.gnome.org/metacity/2009/03/11/squib-of-the-day-line-weight/comment-page-1/#comment-896</link>
		<dc:creator>Screwtape</dc:creator>
		<pubDate>Wed, 11 Mar 2009 06:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/metacity/?p=438#comment-896</guid>
		<description>It certainly would be useful to be able to control line weight - the most common example I can think of is drawing the &quot;X&quot; on the close-button. Having the units be &quot;multiples of the current icon height&quot; seems fairly arbitrary and annoying, though. Shouldn&#039;t they be &#039;multiples of the default line width&#039;?

Another alternative might be for themes to be able to specify what font-size ranges they&#039;re usable with, and if the window font-size is larger than the listed maximum, double the size of theme-units until the font-size fits.

On the similar subject of high-resolution displays, you might be interested to read about how browsers deal with the issue: for Firefox specifically, a CSS &quot;pixel&quot; is defined to be &quot;1/96th of an inch, rounded to the nearest device pixel&quot;. In practice, screens up to about 144dpi will draw 1-CSS-pixel borders with one physical pixel, screens up to about 240dpi will draw 1-CSS-pixel borders with two physical pixels, and so forth:

http://weblogs.mozillazine.org/roc/archives/2007/02/units_patch_lan.html

Actually, the cleanest solution for v3 themes might just be to allow all dimension attributes to have an optional &#039;units&#039; parameter, being either &quot;em&quot; for relative-to-window-font sizing, or &quot;px&quot; for relative-to-screen-resolution sizing.

Of course, you&#039;d have to figure out what &quot;em&quot; meant in border styles with the title-bar hidden.</description>
		<content:encoded><![CDATA[<p>It certainly would be useful to be able to control line weight &#8211; the most common example I can think of is drawing the &#8220;X&#8221; on the close-button. Having the units be &#8220;multiples of the current icon height&#8221; seems fairly arbitrary and annoying, though. Shouldn&#8217;t they be &#8216;multiples of the default line width&#8217;?</p>
<p>Another alternative might be for themes to be able to specify what font-size ranges they&#8217;re usable with, and if the window font-size is larger than the listed maximum, double the size of theme-units until the font-size fits.</p>
<p>On the similar subject of high-resolution displays, you might be interested to read about how browsers deal with the issue: for Firefox specifically, a CSS &#8220;pixel&#8221; is defined to be &#8220;1/96th of an inch, rounded to the nearest device pixel&#8221;. In practice, screens up to about 144dpi will draw 1-CSS-pixel borders with one physical pixel, screens up to about 240dpi will draw 1-CSS-pixel borders with two physical pixels, and so forth:</p>
<p><a href="http://weblogs.mozillazine.org/roc/archives/2007/02/units_patch_lan.html" rel="nofollow">http://weblogs.mozillazine.org/roc/archives/2007/02/units_patch_lan.html</a></p>
<p>Actually, the cleanest solution for v3 themes might just be to allow all dimension attributes to have an optional &#8216;units&#8217; parameter, being either &#8220;em&#8221; for relative-to-window-font sizing, or &#8220;px&#8221; for relative-to-screen-resolution sizing.</p>
<p>Of course, you&#8217;d have to figure out what &#8220;em&#8221; meant in border styles with the title-bar hidden.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  blogs.gnome.org/metacity/2009/03/11/squib-of-the-day-line-weight/feed/ ) in 1.25922 seconds, on Feb 11th, 2012 at 1:07 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 2:07 am UTC -->
