endaaman / tym

Lua-configurable terminal emulator
MIT License
185 stars 14 forks source link

Line height/padding #77

Closed dharmx closed 2 years ago

dharmx commented 2 years ago

Hello, all.

image

Above is the Xresources patch for st.

image

This is the kitty terminal.

I was wondering if something like this is already available for tym? Also, please ask if any additional information is needed!

Thank you :)

endaaman commented 2 years ago

Hello @pagankeymaster

Unfortunately, there is no option for line-height and it might be a bit hard to add the option to tym.

Font rendering is all done by VTE (https://gitlab.gnome.org/GNOME/vte) on tym. If we can interrupt cairo context used to render the VTE screen, the line height can be modified using pango_layout_set_spacing() but no such hook exist(maybe just I don't know it tho).

Or if you really want the behavior, you can modify your font itself.

When such hook is added on VTE in the future, I will implement the line-height option.

dharmx commented 2 years ago

No worries! I can wait. I'll subscribe to this issue :)

endaaman commented 2 years ago

@pagankeymaster

Added the properties cell_height and cell_width on 605bd09

$ ./src/tym --cell_height 150 --height 20 --width 60`

Screenshot_20220621_143715

dharmx commented 2 years ago

Works perfectly! Thanks for this. image

dharmx commented 2 years ago

This can be finally closed.