function monospace(text, start, end, width) {
  const glyphs = Math.min(width, end - start);
  return {
    start,
    end: start + glyphs,
  };
}
// determines the visible number of glyphs within a given width
determines the visible number of glyphs within a given width
determines the visible number of glyphs within a given width
function monospace(text, start, end, width) {
  const glyphs = Math.min(width, end - start);
  return {
    start,
    end: start + glyphs,
  };
}
function monospace ( text , start , end , width ) { const glyphs = Math . min ( width , end - start ) ; return { start , end : start + glyphs , } ; }
determines the visible number of glyphs within a given width
determines the visible number of glyphs within a given width