Hacker News new | ask | show | jobs
by UnquietTinkerer 1889 days ago
For comparison (not trying to be argumentative!), it looks pretty good in gnome terminal on linux mint:

https://utio.net/demos/box_drawing.png

I only mention this because I've used these to decorate tables in my own notes in the past. It's not really worth the trouble, but I remembered being impressed with how nice these characters looked at the time.

If anyone else wants to try it, paste this into a python REPL:

    print("\u250f\u2501\u2513\n\u2503 \u2503\n\u2517\u2501\u251b")
1 comments

Yeah, this is purely a issue of poor support for box drawing characters by the font.

Eg, I get:

  data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhAAAABQAQMAAAByCd6PAAAABlBM
  VEX///8AAABVwtN+AAABc0lEQVRYw+2YwWrEIBCGR5EyhR6k5LCHsvUx9iQ6t30n6dL3LmxnHDdx
  IadmoUtwAr/5M+OHRIUYgKeLJPKSlnvWBCu21yU8wJQgXuJrVRTFKH3YxdaoxUtXkiYIITAAKyJA
  Tvm16kn0lANUl1ujVh7PJYzw3s+jCGBSxkXRSB92pjVq5fFcwghEhFIOpQBNnmw6x6ooisaX6gxo
  oxZtV1ImcM4BEZIH4jr3JZmb4tFTdUdNNYuuKyEAa+2MQEJzxkX5ouqMpprFvoQR/ShYa+amivCK
  8A3hK2IuYYS8C0qKcBRMxkXROKrOaKpZ7EsYITMiiPeK4InDRTFLH3ZZU81iX8IIWRclRXqDCFaW
  z6FqbErawp3FrqTA3Uq1K2phxfYKq4v9r9trxH7i8/qzD8QHXwMxEAMxEAMxEAPxFIjdfF+M2Glc
  tyO+94CQc+pGhJyWNyLkzL4RIX8ONiLk/8X/j+IB7+IBM/KAdfE8e2TbZv8FgJZ8r2PE1j8AAAAA
  SUVORK5CYII=
Edit: how do I force HN to turn URLs into links? It usually does that automatically. Code-blocked for now.
Is there a way for a font to "know" at what line spacing it is being rendered?
I don't think it is controllable by the font; the only issue I can see if these lines and corners are not extended all the way to each character cell's bounding box.