Request for monospaced font
- Blaise170
- ALPS キーボード
- Location: Boston, MA
- Main keyboard: Cooler Master Quickfire Stealth
- Main mouse: Logitech G502
- Favorite switch: Alps SKCM Blue
- DT Pro Member: 0129
- Contact:
Would love to have a monospaced font to use on the forums. I know that the code feature exists, but since it only displays the first 10 lines or so, it's not very useful. Not sure the difficulty in adding a new font to select, but...
Last edited by Blaise170 on 03 May 2018, 20:46, edited 1 time in total.
- webwit
- Wild Duck
- Location: The Netherlands
- Main keyboard: Model F62
- Favorite switch: IBM beam spring
- DT Pro Member: 0000
- Contact:
It doesn't show as a button in the editor, but try the 'monospace' tag.
- Blaise170
- ALPS キーボード
- Location: Boston, MA
- Main keyboard: Cooler Master Quickfire Stealth
- Main mouse: Logitech G502
- Favorite switch: Alps SKCM Blue
- DT Pro Member: 0129
- Contact:
Hmmm... I wonder if BBCode requires non-breaking spaces to display monospace correctly.ramnes wrote: ↑let's try this
one space
two spaces
three spaces
four spaces
.
.
.
.
.
.
It works, but it doesn't handle front spaces nor multiple spaces.
- webwit
- Wild Duck
- Location: The Netherlands
- Main keyboard: Model F62
- Favorite switch: IBM beam spring
- DT Pro Member: 0000
- Contact:
There's also 'fixed' and 'financial'.
- Blaise170
- ALPS キーボード
- Location: Boston, MA
- Main keyboard: Cooler Master Quickfire Stealth
- Main mouse: Logitech G502
- Favorite switch: Alps SKCM Blue
- DT Pro Member: 0129
- Contact:
Fixed:
0 1 2 3 4 5Financial:
0 1 2 3 4 5
- Blaise170
- ALPS キーボード
- Location: Boston, MA
- Main keyboard: Cooler Master Quickfire Stealth
- Main mouse: Logitech G502
- Favorite switch: Alps SKCM Blue
- DT Pro Member: 0129
- Contact:
Nice.
┌──────────┬──────────┬──────────┐ │ Alpha │ Beta │ Gamma │ ├──────────┼──────────┼──────────┤ │ 1 │ 2 │ 3 │ │ AB │ CD │ EF │ │ QWE │ RTY │ UIO │ │ XXXX │ WWWW │ MMMM │ │ A │ B │ C │ └──────────┴──────────┴──────────┘
- webwit
- Wild Duck
- Location: The Netherlands
- Main keyboard: Model F62
- Favorite switch: IBM beam spring
- DT Pro Member: 0000
- Contact:
Monospace: <span style="font-family: monospace">{TEXT}</span>
Fixed: <pre style="font-size: 10px; line-height: 16px; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word">{TEXT}</pre>
Financial: <pre style="font-size: 10px; line-height: 16px; overflow: auto">{TEXT}</pre>
So 'monospace' collapses white space and wraps lines if it doesn't fit (it behaves like non-monospace text), 'fixed' preserves white space and wraps lines if it doesn't fit, and financial goes all the way: it preserves white-space and doesn't wrap until it encounters a newline, and shows a horizontal scrollbar if it doesn't fit.
Fixed: <pre style="font-size: 10px; line-height: 16px; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word">{TEXT}</pre>
Financial: <pre style="font-size: 10px; line-height: 16px; overflow: auto">{TEXT}</pre>
So 'monospace' collapses white space and wraps lines if it doesn't fit (it behaves like non-monospace text), 'fixed' preserves white space and wraps lines if it doesn't fit, and financial goes all the way: it preserves white-space and doesn't wrap until it encounters a newline, and shows a horizontal scrollbar if it doesn't fit.
- Blaise170
- ALPS キーボード
- Location: Boston, MA
- Main keyboard: Cooler Master Quickfire Stealth
- Main mouse: Logitech G502
- Favorite switch: Alps SKCM Blue
- DT Pro Member: 0129
- Contact:
Very useful information. Thanks for that webwit. I just updated a chart in my GB thread and now it actually looks somewhat nice. Looks like in general I'll be using
to format any tables I make (the PHP table generator is extremely hard to use, FYI).