Talk:Flatten a list: Difference between revisions

Content added Content deleted
Line 39: Line 39:


:: Put the box into J highlighting again and it gets ugly since the digits are highlighted by GeSHi to be bold. That makes them wider than the surrounding characters, which throws off vertical line alignment. I have no clue what font the <code>&lt;pre&gt;</code> blocks are using; if I set them manually to Consolas or Courier New it all works fine. Ah, apparently it's Lucida Console. This probably can be fixed in the MW style sheet, considering that Lucida COnsole is the default choice for IE 8 at least for Latin monospace. There seem to be some fonts that work and some that don't. I agree, though, that everything should be in a single block. I made that change more of pragmatic considerations. In any case, a few sample images: [http://hypftier.de/dump/box-consolas.png Consolas], [http://hypftier.de/dump/box-courier-new.png Courier New], [http://hypftier.de/dump/box-dejavu-sans-mono.png DejaVu Sans Mono], [http://hypftier.de/dump/box-lucida-console.png Lucida Console] – that's all I have in monospaced fonts. Note that Consolas didn't have line-drawing glyphs in Vista; dunno whether that has been fixed in an update or so, but Windows 7's Consolas has them. Seemingly only Lucida Console has a different width depending on the weight, though (which makes it even more unsuitable as the default). —[[User:Hypftier|Johannes Rössel]] 08:32, 2 June 2010 (UTC)
:: Put the box into J highlighting again and it gets ugly since the digits are highlighted by GeSHi to be bold. That makes them wider than the surrounding characters, which throws off vertical line alignment. I have no clue what font the <code>&lt;pre&gt;</code> blocks are using; if I set them manually to Consolas or Courier New it all works fine. Ah, apparently it's Lucida Console. This probably can be fixed in the MW style sheet, considering that Lucida COnsole is the default choice for IE 8 at least for Latin monospace. There seem to be some fonts that work and some that don't. I agree, though, that everything should be in a single block. I made that change more of pragmatic considerations. In any case, a few sample images: [http://hypftier.de/dump/box-consolas.png Consolas], [http://hypftier.de/dump/box-courier-new.png Courier New], [http://hypftier.de/dump/box-dejavu-sans-mono.png DejaVu Sans Mono], [http://hypftier.de/dump/box-lucida-console.png Lucida Console] – that's all I have in monospaced fonts. Note that Consolas didn't have line-drawing glyphs in Vista; dunno whether that has been fixed in an update or so, but Windows 7's Consolas has them. Seemingly only Lucida Console has a different width depending on the weight, though (which makes it even more unsuitable as the default). —[[User:Hypftier|Johannes Rössel]] 08:32, 2 June 2010 (UTC)
::: If I put something in the RC global stylesheet for 'pre', I don't want to name a font that may be platform-specific. Is there a font (say, "Courier" or "Monospace") that works across platforms? Alternately, I could use some free-license webfont, if folks can agree on one. --[[User:Short Circuit|Michael Mol]] 12:18, 2 June 2010 (UTC)