A snippet to debug font by visualizing baseline, cap-height, etc

An Arabic example

#set page(height: auto, width: auto, margin: (left: 1em, right: 4em, top: 0.5em, bottom: 1.2em))
#debug-font({
  set text(lang: "ar", font: "Noto Sans Arabic")
  [نَبْكِ اللِّوَى الدَّخُول]
})

2 Likes