118 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
95
views
How do I add footnotes inside of code blocks in Markdown, while still keeping the same style as footnotes usually are?
Here is a piece of my code:
a = "Hello!"
print(a) # This works because 'a' is a variable†.
I need to put a footnote at the end of the second line, but the monospace font prevents asterisks ...
-1
votes
1
answer
118
views
How can i correctly format string widths inside of a discord Embed?
I’m working on a Discord bot using the discord.py library and encountered an issue where the printed console output is correct, but the output in the Discord embed is not displaying as expected - the ...
0
votes
0
answers
391
views
How do I use SF Mono in Chrome?
The SF Mono font is present on modern Macs, but I can't seem to target it in my CSS font stack for Chrome? It works just fine on Safari, but not in Chrome. I know ui-monospace doesn't work (yet) in ...
1
vote
1
answer
95
views
Monospace font sometime loses pixels
I'm trying to implement a html/css/js editor, to make things easier I decided to use a monospace font, in this case the JetBrains font. But as I tried setting the caret position to a multiple of the ...
2
votes
0
answers
28
views
Unwanted line wrapping behavior in the Text view of SwiftUI [duplicate]
guys!
I found that (in SwiftUI) if a String contains the '-' character, and the '-' character is immediately followed by a non numeric character, then the string will break at the position of the '-' ...
1
vote
1
answer
196
views
Make uniform character widths for all fonts in Visual Studio Code
It appears that the text is no longer monospace when the fonts are mixed and matched
Here the example shows a mixture of Fira Code and Consolas for the characters that Fira Code does not support, ...
-1
votes
1
answer
419
views
How can I deal with ligatures in Apple's SF Mono count programmatically in Swift?
Note: I'm posting this in Q & A style since it's a corner case question and I want to post it to StackOverflow for the record, on the small chance that it saves someone some time and spares them ...
1
vote
1
answer
122
views
Telegram makes tables croocked, how to make it appear as expected? Python aiogram
the following piece of code
await message.answer(str(table))
await message.answer(str(summary), disable_notification=True)
makes the bot to answer with wierdly crooked tables (summary and table are ...
0
votes
1
answer
158
views
Padding mixed CJK/ASCII input for monospaced output
I have been trying to solve this for some time. I have a need to output console stuff like:
ABC-花海 | 123 | 456789
JustSomeAnsi | 123 | 456789
花花花花花花 | 123 | 456789
追不到我别生气 | ...
0
votes
0
answers
457
views
Any way to align multiple lines of text in lua using string.format()?
So I'm using a monospace font and in the debug window when I print multiple lines of my text string all the columns line up nicely.
But when I output that same string, using the same font inside of a ...
0
votes
1
answer
86
views
Fonts with common glyphs/char sizes
I know there are monospaced fonts that have the same width per character, but they don't solve my problem.
I'm looking for a pair (or more) of fonts that have common glyph sizes.
I expect that if I ...
2
votes
3
answers
2k
views
Generate a list of all available monospaced fonts
Currently, I am using working code to generate a list of available fonts. However, I'd like to only show the list of avaliable monospaced (TkFixedFont)
from tkinter import font
def changeFont(event):
...
2
votes
1
answer
2k
views
Formatting options in Telegraph
I want to use monospaced format in Telegraph, just like I just did, not a block of code, just a single word. Also I'd like some strike-through too. Those are formatting options available in most (if ...
23
votes
3
answers
6k
views
Backticks in git commit message
I did
git commit -m "Changed function name `sum` to `sum_list`"
My intention with the backticks was that sum and sum_list be typed in a monospace font when someone views the commit message ...
7
votes
2
answers
4k
views
Monospace font characters are not fixed width
I'm trying to align some characters to draw a box in html. I've picked a monospace font so that characters are aligned, and drew the box with an equal number of characters for each line.
pre {
...