Boost C++ Libraries: Ticket #3945: [boostbook] stylesheet font for code makes 1 and l indistinguishable https://svn.boost.org/trac10/ticket/3945 <p> The font used for the boost book documentation has the same glyph appearance for 1 (one) and l (ell). This makes code samples such as the first example at <a href="http://www.boost.org/doc/libs/1_42_0/doc/html/lambda/using_library.html">http://www.boost.org/doc/libs/1_42_0/doc/html/lambda/using_library.html</a> very hard to follow. </p> <p> When I put the same code in &lt;pre&gt; or &lt;code&gt; a bare HTML file the characters are easy to distinguish. I have tried with chrome and firefox browsers and get the same problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3945 Trac 1.4.3 anonymous Thu, 18 Feb 2010 11:55:24 GMT <link>https://svn.boost.org/trac10/ticket/3945#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3945#comment:1</guid> <description> <p> That's a bit odd as we don't set a font for code samples. Can you try these two versions to see if they're the same? </p> <p> <a href="http://www.boost.org/doc/libs/1_40_0/doc/html/lambda/using_library.html">http://www.boost.org/doc/libs/1_40_0/doc/html/lambda/using_library.html</a> <a class="ext-link" href="http://boost-sandbox.sourceforge.net/doc/html/lambda/using_library.html"><span class="icon">​</span>http://boost-sandbox.sourceforge.net/doc/html/lambda/using_library.html</a> </p> <p> We changed the charset in the documentation recently, if the first link looks different then that's the cause. The second link is the trunk documentation served from a different server, if that's okay then it's something to do with the website style or server. Can you also try looking at a local copy? </p> <p> If none of those are different, what operating system are you using? Screenshots could also be useful. </p> </description> <category>Ticket</category> </item> <item> <author>danio <dan.pidcock@…></author> <pubDate>Thu, 18 Feb 2010 15:20:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3945#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3945#comment:2</guid> <description> <p> I just looked into it a bit more and it's caused by the font size being set to 9 point in .programlisting in boostbook.css. </p> <p> The problem with this is that many fixed fonts have no difference between 1 and l at that size (at least on windows). All of Courier, Courier New, Bitstream Vera Sans Mono have this issue. Using <a class="missing wiki">DejaVu</a> Sans Mono or Lucida Console are OK. </p> <p> Internet explorer iS OK because it performs anti-aliasing and so the characters can be distinguished. </p> <p> A possible fix would be to set the font-family to something like <a class="missing wiki">DejaVu</a> Sans Mono, Lucida Console. On other platforms where these fonts aren't available it should fall back to the default fixed font. </p> <p> I can try viewing these pages on Linux later to see how they are affected. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>René Rivera</dc:creator> <pubDate>Thu, 18 Feb 2010 16:17:44 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3945#comment:3 https://svn.boost.org/trac10/ticket/3945#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> We don't set the font to anything other than the standard preformatted style. If you are having problems with how it displays in your system, change the font your browser uses for fixed width display. </p> Ticket danio <dan.pidcock@…> Thu, 18 Feb 2010 16:47:39 GMT <link>https://svn.boost.org/trac10/ticket/3945#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3945#comment:4</guid> <description> <p> The font size is changed by doc/src/boostbook.css: </p> <blockquote> <p> .programlisting, .screen { </p> <blockquote> <p> font-size: 9pt; display: block; margin: 1pc 4% 0pc 4%; padding: 0.5pc 0.5pc 0.5pc 0.5pc; </p> </blockquote> <p> } </p> </blockquote> <p> I am happy with changing my browser default font but was raising an issue in the hope it would be helpful to sort this out for all the other windows C++ developers who don't use internet explorer. </p> </description> <category>Ticket</category> </item> </channel> </rss>