Repository navigation
Add setting for fontSize and lineHeight to the integrated terminal - #6998
Conversation
|
By analyzing the blame information on this pull request, we identified Daniel Imms (@Tyriar) to be a potential reviewer |
|
Hi Tamas Kiss (@kisstkondoros), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
There was a problem hiding this comment.
I think #6456 should be figured out before the font size and line height is added to prevent addition the charWidth/charHeight settings.
There was a problem hiding this comment.
I also thought about that, but I have no clean solution in mind...
Perhaps measuring a character like X or M with canvas api... smth. like https://msdn.microsoft.com/en-us/library/ff975421(v=vs.85).aspx
There was a problem hiding this comment.
Yeah, that's why I haven't tackled it yet 😉
Something along the lines of that is what I was thinking, I think you might be able to do it by creating a div and measuring that.
58a3bc3 to
3c1103d
Compare
|
Daniel Imms (@Tyriar) The mentioned measurement method seems to work quite well, of course after 3fde039 it will need some adjustments. |
|
Tamas Kiss (@kisstkondoros) Awesome! 👍 |
3c1103d to
1f3d189
Compare
|
Tamas Kiss (@kisstkondoros) I merged the PR into master as the 1.2 release was branched off. |
|
I moved the configuration code into Maybe changing export interface ITerminalFont {
fontFamily: string;
fontSize: string;
lineHeight: string;
} |
a7be30e to
62b0bb1
Compare
|
Daniel Imms (@Tyriar) Please have a look, I hope that was the idea! 😉 |
There was a problem hiding this comment.
Add: " (in pixels)"
|
Tamas Kiss (@kisstkondoros) really nice work! Made a bunch of comments, mainly just names and shuffling things around. |
resolves #6728