Jump to content
  • 0

Font size of a code fragment


GlebMorgan

Idea

When a code fragment (one with `backticks`) is created, it is given a monospaced font that is way bigger compared to normal text.

I keep reducing the font size by 1/4 its size constantly.

Could you please adjust monospace font size (or modify the way code fragment formatting is rendered) so that font sizes match?

Here's an example from EverNote Web:

image.png.a9927f2671008d246e2100e2df359db0.png

I suppose that is not a hard thing to fix.

Thank you kindly in advance!

Link to comment

3 replies to this idea

Recommended Posts

  • 0
  • Level 5*
22 hours ago, GlebMorgan said:

When a code fragment (one with `backticks`) is created, it is given a monospaced font that is way bigger

Hi.  Thanks for posting that - I wasn't aware that backticks would trigger a code block! Sadly when I use that trick the text is exactly the same size as the non-backticked text - in my case 16pt for both,  which seems reasonable.  I don't see there being an overwhelming call for smaller text in every case... and 

23 hours ago, GlebMorgan said:

I suppose that is not a hard thing to fix.

Possibly not,  but Evernote's in the middle of a major project and has priorities of its own. Difficulty may not be the problem...

Link to comment
  • 0

Thank you for the reply, gazumped.

The letters themselves have the same base height, that's true. But characters in code fragments are wider + those style margins and borders take additional space as well. That make code fragments look unproportionally bigger and, what's more important, lead to neighbour items being overlapped:

image.png.5f0d86cf31198c721a369282f7a046ba.png

Thus, that seems reasonable for me to either decrease margins:

image.png.97128846cbe9001b532b605e6f012bb0.png

... or font size:

image.png.83a97da68198f3279ece8ca35cefe427.png

... which is a common practice AFAICS :)

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...