Replies: 1 comment 8 replies
-
I am not quite shure what you need, but I assume the solution would be a See for example the examples here #969 (comment) Unfortunately we have those fonts not (yet). Can you self-patch? There is an option for |
Beta Was this translation helpful? Give feedback.
-
I want to use in GTK.
The purpose is to set all character widths of nerd font to their own displayable width
For example "JetBrains Mono Medium Nerd Font Complete.ttf"
The reason is: while it is possible to display the entire character content by adding spaces, for some characters the spaces are too wide and the right side is too wide. GTK only responds to events within the character width.
For a character:
1: Displayable area width=700, character standard width=600
2: Displayable area width=700=character standard width
For 1, I had to add space after the symbol to receive mouse events beyond the standard width. Otherwise, events in the remaining 100-width area will not be accepted.
On the other hand, the final width is 600+600=1200, but I only need a width of 800, so the area with a width of 400 is blank. Is there a way to eliminate this? Not through gtk. Eliminating this whitespace with gtk is cumbersome.
For 2: I need a width of 800, 700 is less than 800, just center it. this is very simple.
The mono font cannot be used, because when the font is set too large, the whitespace above and below the characters also becomes high. This raises a new question. I can't get rid of it easily by hiding it.
So how to solve the problem?
I've also tried setting the space character to 100 for finer tuning.
Beta Was this translation helpful? Give feedback.
All reactions