Skip to content

Conversation

@Robin-K-Lynn
Copy link
Contributor

Changed the text format from MarkdownText to StyledText and removed the inline code formatting. This fixes font size calculation and keeps the text styling and line break.

@Robin-K-Lynn
Copy link
Contributor Author

I am running Friture on Linux, before this patch, the side bar numbers are over sized
image
With the changes it looks like this
image

@Robin-K-Lynn
Copy link
Contributor Author

Possibly related to scaling from issue #249

@tlecomte
Copy link
Owner

tlecomte commented Aug 4, 2025

@Robin-K-Lynn Hmm, I'm not sure about this one.
The intent behind using markdown was to use a markdown codeblock, so that the text would be rendered using a monospace font. With a non-monospace font, the width of characters are all different, so the digits would constantly move left and right.

@Robin-K-Lynn
Copy link
Contributor Author

Ah, yes, I didn't think of that as my system's default font happens to have monospacing for all numbers. I've changed the font family to monospace to address that.
image
Not using code blocks avoids the issues with scaling and unwanted margins which are system dependant.

@tlecomte
Copy link
Owner

tlecomte commented Aug 4, 2025

Thanks. I also like that it makes the intent of the code a bit clearer.

@tlecomte tlecomte merged commit f961e11 into tlecomte:master Aug 4, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants