<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ta vie on s'en fout! &#187; web</title>
	<atom:link href="http://tavie.onsenfout.com/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://tavie.onsenfout.com</link>
	<description>Mon bazar techno-miam</description>
	<lastBuildDate>Tue, 22 Nov 2011 11:06:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installer un certificat numérique sous Outlook</title>
		<link>http://tavie.onsenfout.com/2011/05/24/installer-un-certificat-numerique-sous-outlook/</link>
		<comments>http://tavie.onsenfout.com/2011/05/24/installer-un-certificat-numerique-sous-outlook/#comments</comments>
		<pubDate>Tue, 24 May 2011 11:53:46 +0000</pubDate>
		<dc:creator>François</dc:creator>
				<category><![CDATA[Bits]]></category>
		<category><![CDATA[certificat]]></category>
		<category><![CDATA[messagerie]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[outlook 2007]]></category>
		<category><![CDATA[outlook express]]></category>
		<category><![CDATA[sécurité]]></category>
		<category><![CDATA[signature électronique]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[windows mail]]></category>

		<guid isPermaLink="false">http://tavie.onsenfout.com/?p=711</guid>
		<description><![CDATA[Pour faire suite à l&#8217;installation de certificat sous Thunderbird, un petit topo sur l&#8217;installation sous Outlook. Le principe est le même pour Outlook Express et Windows Mail, qui utilisent eux aussi le magasin de certificats Windows. Comme précédemment on utilisera un certificat Comodo pour se simplifier la vie. Etape 1 : La demande de certificat [...]<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=5.0" /></div><div>Rating: 5.0/<strong>5</strong> (1 vote cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p>Pour faire suite à <a href="/2011/05/16/installer-un-certificat-sous-thunderbird/" target="_blank">l&#8217;installation de certificat sous Thunderbird</a>, un petit topo sur l&#8217;installation sous Outlook. Le principe est le même pour Outlook Express et Windows Mail, qui utilisent eux aussi le magasin de certificats Windows. Comme précédemment on utilisera un certificat Comodo pour se simplifier la vie.<br />
<span id="more-711"></span></p>
<h3>Etape 1 : La demande de certificat</h3>
<p>La demande de certificat doit être faite avec Internet Explorer, c&#8217;est bien plus simple. Aller sur la page <a href="http://www.comodo.com/home/email-security/free-email-certificate.php" target="_blank">Free Secure Email Certificate</a> et cliquer sur le bouton <strong><em>Free Download</em></strong>. Si la barre d&#8217;information d&#8217;IE affiche <strong><em>Ce site Web souhaite exécuter le module complémentaire &laquo;&nbsp;Microsoft Certificate Enrollment Control&nbsp;&raquo;&#8230;</em></strong>, cliquer sur la barre, choisir <strong><em>Exécuter le module complémentaire</em></strong>, puis <strong><em>Exécuter</em></strong>. Valider de la même façon les éventuels messages de demande d&#8217;autorisation. Entrer le prénom, le nom, l&#8217;adresse email pour laquelle on veut le certificat, le pays, laisser les options par défaut. Saisir un mot de passe pour pouvoir éventuellement révoquer le certificat, décocher (ou pas) la case &laquo;&nbsp;Opt-in&nbsp;&raquo; pour la newsletter de Comodo, accepter les conditions, valider, et accepter les demandes d&#8217;autorisation.</p>
<h3>Etape 2 : Installer le certificat</h3>
<p>Lorsque le message <strong><em>Your certificate is ready for collection</em></strong> est arrivé dans la boite à lettres, cliquer sur le lien <strong><em>Click &#038; Install Comodo Email Certificate</em></strong> si Internet Explorer est le navigateur par défaut, sinon copier l&#8217;adresse du lien et la coller dans la barre d&#8217;adresse de IE. Accepter les demandes d&#8217;autorisation. Si <strong><em>Successful</em></strong> s&#8217;affiche sur la page le certificat est installé dans le magasin Windows.</p>
<h3>Etape 3 : Sauvegarder le certificat</h3>
<p>Cette étape n&#8217;est pas nécessaire pour l&#8217;utilisation du certificat mais elle est vivement recommandée pour pouvoir réinstaller le certificat en cas de problème.</p>
<p>Sous Internet Explorer aller dans <strong><em>Outils</em></strong> puis <strong><em>Options Internet</em></strong> et onglet <strong><em>Contenu</em></strong>. Cliquer sur le bouton <strong><em>Certificats</em></strong>, le certificat demandé doit apparaître dans l&#8217;onglet <strong><em>Personnel</em></strong>. Le selectionner et cliquer sur <strong><em>Exporter</em></strong>. Choisir d&#8217;exporter la clé privée, laisser les options par défaut, saisir un mot de passe robuste, choisir un nom de fichier et un emplacement et valider. Il est recommandé de stocker ce certificat en lieu sur.</p>
<h3>Etape 4 : Associer le certificat au compte de messagerie</h3>
<p>L&#8217;emplacement des options peut varier selon les versions d&#8217;Outlook. Pour Outlook 2007 aller dans <strong><em>Outils</em></strong>, puis <strong><em>Centre de gestion de la confidentialité</em></strong>, rubrique <strong><em>Sécurité de messagerie électronique</em></strong>. </p>
<p>Dans <strong><em>Courrier électronique chiffré</em></strong> cocher uniquement les cases <strong><em>Ajouter une signature numérique au message sortant</em></strong> et <strong><em>Envoyer le message signé en texte clair&#8230;</em></strong>. Cliquer sur le bouton <strong><em>Paramètres</em></strong>.</p>
<p>Dans <strong><em>Nom des paramètres de sécurité</em></strong> saisir l&#8217;adresse email. Cocher les 2 cases <strong><em>Paramètre de sécurité par défaut&#8230;</em></strong>. Cliquer sur le bouton <strong><em>Choisir</em></strong> à coté de <strong><em>Certificat de signature</em></strong>, et sélectionner le certificat, valider. Cocher la case <strong><em>Envoyer ces certificats avec le message signé</em></strong>, valider toutes les boites de dialogue.</p>
<p>C&#8217;est terminé, les messages envoyés seront tous signés avec le nouveau certificat numérique. Lors de la rédaction d&#8217;un message, 2 boutons permettent de gérer la signature et le chiffrement dans le groupe <strong><em>Options</em></strong> de l&#8217;onglet <strong><em>Message</em></strong></p>
<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=5.0" /></div><div>Rating: 5.0/<strong>5</strong> (1 vote cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://tavie.onsenfout.com/2011/05/24/installer-un-certificat-numerique-sous-outlook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Personnaliser les polices d&#8217;une page web avec @font-face</title>
		<link>http://tavie.onsenfout.com/2011/02/25/personnaliser-les-polices-dune-page-web-avec-font-face/</link>
		<comments>http://tavie.onsenfout.com/2011/02/25/personnaliser-les-polices-dune-page-web-avec-font-face/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 10:25:59 +0000</pubDate>
		<dc:creator>François</dc:creator>
				<category><![CDATA[Bits]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design web]]></category>
		<category><![CDATA[EOT]]></category>
		<category><![CDATA[polices]]></category>
		<category><![CDATA[typo]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web fonts]]></category>

		<guid isPermaLink="false">http://tavie.onsenfout.com/?p=605</guid>
		<description><![CDATA[Il y a deux mois de ça j&#8217;avais publié un billet où je m&#8217;extasiais presque sur les possibilités de la Google Fonts API. J&#8217;avais tort. Entre temps j&#8217;ai lu des articles bien intéressants ici ou là écrits par des gens qui maîtrisent le sujet, et ils m&#8217;ont convaincu que cette API ne sert finalement pas [...]<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p>Il y a deux mois de ça j&#8217;avais publié <a href="/2010/12/24/google-font-api-un-arial-killer/">un billet</a> où je m&#8217;extasiais presque sur les possibilités de la <a href="http://code.google.com/intl/fr-FR/apis/webfonts/">Google Fonts API</a>. J&#8217;avais tort.</p>
<p>Entre temps j&#8217;ai lu des articles bien intéressants <a href="http://www.mariejulien.com/?post/2010/05/23/Google-font-API-%3A-l-inutile-r%C3%A9volution">ici</a> ou <a href="http://www.alsacreations.com/astuce/lire/630-fonte-personnalisee-site-web.html">là</a> écrits par des gens qui maîtrisent le sujet, et ils m&#8217;ont convaincu que cette API ne sert finalement pas à grand-chose. En gros il s&#8217;agit juste d&#8217;un bout de code Javascript qui va générer dynamiquement des règles CSS <a href="http://www.w3.org/TR/css3-webfonts/#the-font-face-rule">@font-face</a> pour embarquer dans la page des polices hébergées chez Google, donc bien loin de chez nous.</p>
<p>Vu le nombre limité de polices disponibles au catalogue <a href="http://www.google.com/webfonts">Google Web Fonts</a>, on peut se demander quel est l&#8217;intérêt de la chose alors que l&#8217;utilisation de @font-face permet d&#8217;utiliser quasiment n&#8217;importe quelle typo hébergée sur votre serveur, pourvu qu&#8217;elle soit libre de droits (le problème des droits est une limitation légale, pas technique, pour le moment il n&#8217;y a pas de DRM sur les polices <img src='http://tavie.onsenfout.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</p>
<h3>Mise en oeuvre de @font-face</h3>
<p><span id="more-605"></span>L&#8217;utilisation basique de @font-face est la suivante, pour une police TrueType &laquo;&nbsp;matypo.ttf&nbsp;&raquo; stockée dans le répertoire relatif &laquo;&nbsp;monrepertoire&nbsp;&raquo; :</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@font-face {  </span>
  <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> matypo <span style="color: #00AA00;">;</span>  
  src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;"> monrepertoire/matypo.ttf </span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;truetype&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>  
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>On peut ensuite l&#8217;utiliser comme on le fait habituellement aves les polices standard :</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.p</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> matypo<span style="color: #00AA00;">,</span> verdana<span style="color: #00AA00;">,</span> helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>  <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ca fonctionnera avec la quasi totalité des navigateurs récents, à l&#8217;exception notable d&#8217;Internet Explorer qui ne sait pas gérer les polices TrueType! Il va donc falloir convertir la police au <a href="http://en.wikipedia.org/wiki/Embedded_OpenType">format EOT</a> (Embedded Open Type), pour que sa majesté IE consente à nous l&#8217;afficher correctement. Microsoft fournit <a href="http://www.microsoft.com/typography/WEFT.mspx">un outil</a> pour ça, et il y a des convertisseurs en ligne comme <a href="http://www.kirsle.net/wizards/ttf2eot.cgi">celui ci</a>, mais le plus simple reste d&#8217;utiliser <a href="http://www.fontsquirrel.com/fontface/generator">Squirrel @font-face generator</a>. Ce sympathique outil va non seulement convertir la police dans tous les formats utilisables mais aussi générer le code css @font-face correspondant&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Generated by Font Squirrel (http://www.fontsquirrel.com) on February 25, 2011 */</span>
<span style="color: #a1a100;">@font-face {</span>
    <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'matypo'</span><span style="color: #00AA00;">;</span>
    src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'matypo-webfont.eot'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
    src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'matypo-webfont.eot?iefix'</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'eot'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
         <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'matypo-webfont.woff'</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'woff'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
         <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'matypo-webfont.ttf'</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'truetype'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
         <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'matypo-webfont.svg#webfontaPl2NyqY'</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'svg'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Comme on peut le voir, le générateur convertit aussi la police aux formats <a href="http://webfonts.info/wiki/index.php?title=WOFF"><strong>woff</strong></a> et <a href="http://www.w3.org/TR/SVG/fonts.html#SVGFontsOverview"><strong>svg</strong></a> (le mode Expert permet de sélectionner les formats). Ça maximise la compatibilité avec l&#8217;ensemble des navigateurs mais ça peut aussi ralentir le temps de chargement de la page. Les polices au format svg notamment peuvent être très lourdes, 2 à 3 fois la taille de la police TrueType, et elles ne sont nécessaires que pour un nombre limité d&#8217;anciens navigateurs.</p>
<p>Il n&#8217;y a plus qu&#8217;a ajuster le chemin de stockage de la police pour que ça fonctionne.</p>
<h3>Liens</h3>
<p>On peut télécharger des polices libres de droits <a href="http://www.fontsquirrel.com/">ici</a> ou <a href="http://www.dafont.com/fr/">là</a><br />
Un <a href="http://typographisme.net/post/Les-formats-de-polices-typographiques-pour-le-Web">bon article</a> sur les différents formats de polices web</p>
<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://tavie.onsenfout.com/2011/02/25/personnaliser-les-polices-dune-page-web-avec-font-face/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Font API, un Arial killer?</title>
		<link>http://tavie.onsenfout.com/2010/12/24/google-font-api-un-arial-killer/</link>
		<comments>http://tavie.onsenfout.com/2010/12/24/google-font-api-un-arial-killer/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 00:39:18 +0000</pubDate>
		<dc:creator>François</dc:creator>
				<category><![CDATA[Bits]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[développement web]]></category>
		<category><![CDATA[feuilles de style css]]></category>
		<category><![CDATA[polices]]></category>
		<category><![CDATA[typo]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://tavie.onsenfout.com/?p=415</guid>
		<description><![CDATA[Grâce à un billet du Presse-Citron, j&#8217;ai (re)découvert la Google Font API, une application Google Labs que j&#8217;avais survolé il y a déjà quelque temps d&#8217;un regard morne sans lui trouver d’intérêt particulier. J&#8217;avais bien tort, car cette API promet d&#8217;utiliser dans une page web des polices de caractères  autres que les imputrescibles Arial, Helvetica, Georgia, Verdana, [...]<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p>Grâce à un billet du <a href="http://www.presse-citron.net/comparer-et-installer-polices-de-caracteres-exotiques-en-html-javascript-css" target="_blank">Presse-Citron</a>, j&#8217;ai (re)découvert la <a href="http://code.google.com/intl/fr-FR/apis/webfonts/" target="_blank">Google Font API</a>, une application Google Labs que j&#8217;avais survolé il y a déjà quelque temps d&#8217;un regard morne sans lui trouver d’intérêt particulier. J&#8217;avais bien tort, car cette API promet d&#8217;utiliser dans une page web des polices de caractères  autres que les imputrescibles Arial, Helvetica, Georgia, Verdana, Times New Roman et consoeurs, bref les fameuses <a href="http://onfaitduweb.com/accessibilite/polices-standards-pour-le-web-web-safe-fonts/" target="_blank">Web Safe Fonts</a> qui permettent de faire des jeux de mots à 2 balles mais rendent le web un peu monotone.<span id="more-415"></span></p>
<p>Le fonctionnement est le suivant :</p>
<p>Il faut tout d&#8217;abord choisir sa police dans le catalogue <a href="http://code.google.com/webfonts" target="_blank">Google Font Directory</a>, l&#8217;onglet &laquo;&nbsp;Use this Font&nbsp;&raquo; permet de générer la balise link à insérer dans l&#8217;en-tête de la page, entre &lt;head&gt; et &lt;/head&gt;.</p>
<p>Exemple pour charger la police Vollkorn de base :</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link href='http://fonts.googleapis.com/css?family=Vollkorn' rel='stylesheet' type='text/css'&gt;</pre></div></div>

<p>Une fois que c&#8217;est fait la police peut être référencée dans les feuilles de style CSS, par exemple :</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">p <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'Vollkorn'</span><span style="color: #00AA00;">,</span>  <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Certaines des polices du catalogue (pas toutes) sont disponibles dans plusieurs variantes : normal (regular), italique (italic), gras (bold), gras-italique (bolditalic). Pour utiliser ces variantes dans les styles il faut l&#8217;indiquer dans la balise link à la suite du nom de police suivi de &laquo;&nbsp;:&nbsp;&raquo;. Par exemple pour utiliser toutes les variantes de la police Vollkorn ça sera :</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link href='http://fonts.googleapis.com/css?family=Vollkorn:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'&gt;</pre></div></div>

<p>On peut charger plusieurs polices en un seul appel en utilisant le séparateur &laquo;&nbsp;|&nbsp;&raquo; :</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link href='http://fonts.googleapis.com/css?family=Vollkorn:regular,italic,bold,bolditalic|Reenie+Beanie' rel='stylesheet' type='text/css'&gt;</pre></div></div>

<p>Si le nom de la police comporte des espaces, comme &laquo;&nbsp;Reenie Beanie&nbsp;&raquo;, on remplace l&#8217;espace par un &laquo;&nbsp;+&nbsp;&raquo; dans la balise link.</p>
<p>Voila pour la mise en oeuvre, c&#8217;est plutôt fastoche. En complément le site <a href="http://www.fontcomparer.com/" target="_blank">Font Comparer</a> permet de visualiser le rendu à l&#8217;écran d&#8217;une sélection de polices du catalogue Google Font.</p>
<p>Dans les faits, le rendu de ces polices téléchargées varie pas mal selon le navigateur utilisé. J&#8217;ai fait quelques tests de base sur la police Vollkorn, voilà ce que ça donne :<br />
﻿</p>
<div id="attachment_425" class="wp-caption alignnone" style="width: 310px"><a href="http://tavie.onsenfout.com/wp-content/uploads/2010/12/Sélection_003.png"><img class="size-medium wp-image-425 " title="Sélection_003" src="http://tavie.onsenfout.com/wp-content/uploads/2010/12/Sélection_003-300x78.png" alt="" width="300" height="78" /></a><p class="wp-caption-text">Google Chrome 9 - Linux</p></div>
<div id="attachment_428" class="wp-caption alignnone" style="width: 310px"><a href="http://tavie.onsenfout.com/wp-content/uploads/2010/12/Sélection_002.png"><img class="size-medium wp-image-428" title="Sélection_002" src="http://tavie.onsenfout.com/wp-content/uploads/2010/12/Sélection_002-300x71.png" alt="" width="300" height="71" /></a><p class="wp-caption-text">Iceweasel (Firefox) 3.6 Linux</p></div>
<div id="attachment_429" class="wp-caption alignnone" style="width: 310px"><a href="http://tavie.onsenfout.com/wp-content/uploads/2010/12/Sélection_004.png"><img class="size-medium wp-image-429" title="Sélection_004" src="http://tavie.onsenfout.com/wp-content/uploads/2010/12/Sélection_004-300x66.png" alt="" width="300" height="66" /></a><p class="wp-caption-text">Internet Explorer 8 - Windows XP</p></div>
<p>Après, il faudrait faire plus de tests, peut-être que les problèmes sont dus à la police elle-même, je ne sais pas, en tout cas les résultats sont plus homogènes avec cette bonne vieille Georgia.</p>
<p>Apparemment l&#8217;API Google Font génère dynamiquement une règle CSS @font-face, on peut voir ça avec le <a href="http://jigsaw.w3.org/css-validator/validator?profile=css3&amp;warning=2&amp;uri=http://tavie.onsenfout.com/2010/12/19/configurer-les-plugins-awstats-de-localisation-geographique/" target="_blank">Service de validation CSS du W3C</a>. Je ne suis pas expert en la matière et je n&#8217;ai pas encore fait d&#8217;essais avec @font-face et des polices en local, faudrait voir ce que ça raconte.</p>
<p>En résumé je trouve tout ça bien prometteur mais pas tout à fait sec, pour le moment je n&#8217;enterre ni Arial ni Georgia, je les garde pour le corps du texte et j&#8217;utilise les polices Google Font pour les titres.</p>
<h3>Edit du 25/02/2011</h3>
<p>Voir aussi <a href="/2011/02/25/personnaliser-les-polices-dune-page-web-avec-font-face/">cet article</a> pour la mise en oeuvre de @font-face.</p>
<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://tavie.onsenfout.com/2010/12/24/google-font-api-un-arial-killer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurer les plugins AWStats de géolocalisation</title>
		<link>http://tavie.onsenfout.com/2010/12/19/configurer-les-plugins-awstats-de-localisation-geographique/</link>
		<comments>http://tavie.onsenfout.com/2010/12/19/configurer-les-plugins-awstats-de-localisation-geographique/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 17:54:43 +0000</pubDate>
		<dc:creator>François</dc:creator>
				<category><![CDATA[Bits]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[geoip]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://tavie.onsenfout.com/?p=393</guid>
		<description><![CDATA[Testé sous Debian 5.0 Lenny &#8211; AWStats 6.7 AWStats est un outil très populaire d&#8217;analyse statistique du trafic d&#8217;un site web. Il ne se résume pas à cela car il peut également être configuré pour analyser des logs FTP ou mail, mais décrire toutes les fonctionnalités d&#8217;AWStats sort largement du cadre de cet article. Alors [...]<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p><em>Testé sous Debian 5.0 Lenny &#8211; AWStats 6.7</em></p>
<p><a href="http://awstats.sourceforge.net/" target="_blank">AWStats</a> est un outil très populaire d&#8217;analyse statistique du trafic d&#8217;un site web. Il ne se résume pas à cela car il peut également être configuré pour analyser des logs FTP ou mail, mais décrire toutes les fonctionnalités d&#8217;AWStats sort largement du cadre de cet article. Alors comme d&#8217;habitude, pour plus d&#8217;infos, <a href="http://awstats.sourceforge.net/docs/index.html" target="_blank">RTFM</a>!</p>
<p>Dans sa configuration par défaut, AWStats fournit quelques informations rudimentaires sur la géolocalisation des visiteurs basées sur <a href="http://fr.wikipedia.org/wiki/Domain_Name_System#R.C3.A9solution_inverse">la résolution inverse</a> de l&#8217;adresse IP des visiteurs. C&#8217;est un processus plutôt consommateur de ressources et imprécis car si la résolution inverse donne quelque chose comme <em>std75-10-xxx-xxx-xxx-xxx.fbx.proxad.net</em> (cas d&#8217;un abonné Free) l&#8217;extension .net ne donne aucune information sur l&#8217;origine géographique.</p>
<p>La solution consiste à activer 2 plugins AWStats, <strong>geoip</strong> et <strong>geoip_city_maxmind</strong>, qui fournissent des informations sur le pays, la région et la ville à partir de l&#8217;adresse IP d&#8217;origine. Ces plugins utilisent les bases de données géographiques gratuites de la société <a href="http://www.maxmind.com/app/ip-location" target="_blank">MaxMind</a>, qui propose également des solutions payantes plus complètes et mises à jour plus régulièrement.</p>
<p><span id="more-393"></span>Ces deux plugins ont besoin du module Perl Geo::IP. L&#8217;installation sous Debian se fait via aptitude :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libgeo-ip-perl</pre></div></div>

<p>Il faut ensuite télécharger et décompresser les bases de données géographiques <a href="http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz">GeoIP.dat.gz</a> et <a href="http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz" target="_blank">GeoLiteCity.dat.gz</a>. Je les ai mises dans /usr/share/awstats/plugins, on peut bien sur les mettre ailleurs.</p>
<p>Modifiez ensuite le fichier /etc/awstats/awstats.nom_du_site.conf et activez les plugins :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">LoadPlugin</span>=<span style="color: #ff0000;">&quot;geoip GEOIP_STANDARD /usr/share/awstats/plugins/GeoIP.dat&quot;</span>
<span style="color: #007800;">LoadPlugin</span>=<span style="color: #ff0000;">&quot;geoip_city_maxmind GEOIP_STANDARD /usr/share/awstats/plugins/GeoLiteCity.dat&quot;</span></pre></div></div>

<p>Si vous avez plusieurs sites, il peut être judicieux de configurer les plugins dans /etc/awstats.conf.local</p>
<p>Il ne reste plus qu&#8217;à mettre un petit script bash dans /etc/cron.monthly pour actualiser les bases tous les mois :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># Mise à jour bases GeoIP pour awstats</span>
<span style="color: #666666; font-style: italic;">#set -x</span>
<span style="color: #007800;">LOCALPATH</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>plugins
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCALPATH</span>/GeoIP.dat.gz&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
     <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCALPATH</span>/GeoIP.dat.gz&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">--output-document</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCALPATH</span>/GeoIP.dat.gz&quot;</span> http:<span style="color: #000000; font-weight: bold;">//</span>geolite.maxmind.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>geoip<span style="color: #000000; font-weight: bold;">/</span>database<span style="color: #000000; font-weight: bold;">/</span>GeoLiteCountry<span style="color: #000000; font-weight: bold;">/</span>GeoIP.dat.gz
<span style="color: #c20cb9; font-weight: bold;">gunzip</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCALPATH</span>/GeoIP.dat.gz&quot;</span>
     <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCALPATH</span>/GeoLiteCity.dat.gz&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
     <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCALPATH</span>/GeoLiteCity.dat.gz&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">--output-document</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCALPATH</span>/GeoLiteCity.dat.gz&quot;</span> http:<span style="color: #000000; font-weight: bold;">//</span>geolite.maxmind.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>geoip<span style="color: #000000; font-weight: bold;">/</span>database<span style="color: #000000; font-weight: bold;">/</span>GeoLiteCity.dat.gz
<span style="color: #c20cb9; font-weight: bold;">gunzip</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCALPATH</span>/GeoLiteCity.dat.gz&quot;</span></pre></div></div>

<p><strong>Note du 9/02/2011</strong> : Le téléchargement avec wget ne fonctionne plus depuis mon serveur, je ne comprends pas bien pourquoi. IP blacklistée? Et pourquoi moi?</p>
<p><strong>Liens :</strong></p>
<p><a href="http://www.smartlabsoftware.com/howto/awstats-geo.htm" target="_blank">How to set up geography-related plug-ins for AWStats.</a></p>
<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://tavie.onsenfout.com/2010/12/19/configurer-les-plugins-awstats-de-localisation-geographique/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

