Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to configure cell width (font character spacing) #552

Merged

Conversation

FernandoBasso
Copy link
Contributor

@FernandoBasso FernandoBasso commented Dec 10, 2021

Terminator already implements the VTE “cell height” feature. This PR implements “cell width”.

We also take the opportunity to refactor “line height“ to “cell height“ to match VTE terminology and to avoid having to related, similar features with two different naming style in the code base.

Thanks @mattrose for the help and encouragement <3.

terminator-cell-width

Currently, we have a setting for changing the line height (cell height),
but not for changing cell width (both available in VTE).

Depending on the font used, it is useful to have the ability to set a
little more space between characters.

This commit adds a configuration similar to the existing one for line
height, but for character space (cell width scale [1]).

Thanks Matt Rose for helping and encouraging me to implement this.

1. https://lazka.github.io/pgi-docs/Vte-2.91/classes/Terminal.html#Vte.Terminal.set_cell_width_scale
@FernandoBasso FernandoBasso marked this pull request as ready for review December 10, 2021 16:12
@mattrose
Copy link
Member

mattrose commented Dec 10, 2021

@FernandoBasso See Gitter for feedback on this. There's a few issues that need fixing before I can pull.

After the previous commit [1], which implements ‘cell width’, it makes
sense to rename ‘line height’ to ‘cell height’, especially because it is
the terminology used by VTE itself [2].

1. ef17685 Add cell width configuration in preferences
2. https://lazka.github.io/pgi-docs/Vte-2.91/classes/Terminal.html#Vte.Terminal.set_cell_height_scale
@FernandoBasso
Copy link
Contributor Author

@mattrose Just pushed an amend to the last commit based on your suggestions. Thanks once again for all the support.

@mattrose
Copy link
Member

Looks good, thank you! Sorry to be such a pain on this one, and sorry to be so long in looking this over, I've just been quite busy lately.

@mattrose mattrose merged commit 8f13bef into gnome-terminator:master Dec 19, 2021
@FernandoBasso
Copy link
Contributor Author

Looks good, thank you! Sorry to be such a pain on this one, and sorry to be so long in looking this over, I've just been quite busy lately.

No problem at all. Thanks again for all the support @mattrose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants