Jump to content
Due to limited holiday staffing, chat will be unavailable from Thursday, July 2 at 5:30 PM (CDT) to Monday, July 13 at 8 AM (CDT). This will allow us to reply to your email requests as quickly as possible. Thank you for understanding. ×
  • 0
GlebMorgan

Font size of a code fragment

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!

Share this post


Link to post

2 replies to this idea

Recommended Posts

  • 0
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...

Share this post


Link to post
  • 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

Share this post


Link to post

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...