Bind to EnvironmentFontFamily in DocumentOutLineWindow.#68811
Bind to EnvironmentFontFamily in DocumentOutLineWindow.#68811Cosifne merged 2 commits intodotnet:mainfrom
Conversation
src/VisualStudio/Core/Def/DocumentOutline/DocumentOutlineView.xaml
Outdated
Show resolved
Hide resolved
The search box is a platform control, not implemented or provided by us. This change was implemented in #68094. |
What I mean is we need to have a way to change the text font in the search text box. |
|
Also tag Andrew to review @ryzngard |
Fix #68809

It is needed because we need the ability to display GB18030.
In order to display it, OullineWindow must be able to change the font, since not all the font supports the character set.
After the change, all the character can be displayed:
Several problems in the existing code.
roslyn/src/VisualStudio/Core/Def/LanguageService/AbstractLanguageService`2.VsCodeWindowManager.cs
Line 277 in 575bc42
I don't know a lot about WinForm but it doesn't inherit the property from the parent like in WPF.
Like:
The child font doesn't match its parent font
We only set Font for TreeView and TextBox now. This feels wrong since the tool window might have SearchTextBox.
The Font used is
vsshell:VsFonts.CaptionFontFamilyKey, I don't know what it means in the shell. But from what I understand here, this is the font used in VS title bar. I don't feel it is meaningful to keep the font here the same as the Title bar.