I tried \setupspacing[fixed] but it didn't help. To prove that the font characters really are half a cell wide I added the line \emdash \dorecurse{39}{ \emdash}. Files on drive are updated.

On Tue, Jun 7, 2022 at 7:25 AM Stefan Nedeljkovic <tsar.srb@gmail.com> wrote:
Thank you very much Wolfgang! But, there is still something weird going on with the font. I updated the files on Drive. Please see line 19, the last word "and". It is clearly out of alignment with the gid. I tested the alignment in MP and it should work, ie 2 characters are indeed one grid cell (semms from the fact that IBM Plex Mono was designed from a typewriter typeface where 12 characters are exactly 1 inch long).

On Mon, Jun 6, 2022 at 10:52 PM Wolfgang Schuster via ntg-context <ntg-context@ntg.nl> wrote:


Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07:
> Wolfgang, Aditya, thank you both very much!
>
> I have 2 more questions:
>
> Observe the files here:
> https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing
>
> 1. I'd like to shift the text area down so that the red lines
> align with the blue lines (I think this amount is called depth). How
> would I do that?

Quick and dirty:

\setuplayout
   [...,
    topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax,
    ...]

> 2. The font is such that exactly 2 characters fit into the grid cell,
> but I see that towards the end of the line it gets out of sync with
> the grid. How would I ensure that all text rendered is strictly
> monospaced without any stretching/shrinking trickery?

Change the text alignment:

\setupalign[flushleft,broad]

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________