Dear all,
I'd be slightly surprised if I were the first to raise this, but I don't see any mention of it recently on the list.
Is it possible to set the weight of a font, as well as the face and the size, from .tm_properties? I'm using Source Code Pro, and I prefer the Medium weight to the Regular on my current screen. Some of the theme files seem to use a "fontStyle" key, but setting
fontStyle = "Medium"
doesn't seem to help.
Thanks in advance.
Jon
On 6 Jul 2015, at 12:25, Jon Clayden wrote:
Is it possible to set the weight of a font, as well as the face and the size, from .tm_properties?
When you say weight, do you mean you want to enable bold for everything, or that the font has different weight variants, and you want to select something other than normal?
If the latter, are you able to select this via View → Font → Show Fonts?
On 6 July 2015 at 13:47, Allan Odgaard mailinglist@textmate.org wrote:
On 6 Jul 2015, at 12:25, Jon Clayden wrote:
Is it possible to set the weight of a font, as well as the face and the size, from .tm_properties?
When you say weight, do you mean you want to enable bold for everything, or that the font has different weight variants, and you want to select something other than normal?
If the latter, are you able to select this via View → Font → Show Fonts?
Yes, the latter. And yes, I can see it in the fonts pane (see attached screenshot). I just want to make it stick for all new windows.
All the best, Jon
On 6 Jul 2015, at 15:05, Jon Clayden wrote:
If the latter, are you able to select this via View → Font → Show Fonts?
Yes, the latter. And yes, I can see it in the fonts pane (see attached screenshot). I just want to make it stick for all new windows.
Try remove all your custom font settings from .tm_properties and then set it via the View → Font menu.
It should save the proper name in Global.tmProperties (under AppSupport). You can look there for how it should be spelled out in .tm_properties, if you want to move the setting to ~/.tm_properties — though I would recommend avoid setting font “manually” via .tm_properties.
On 6 July 2015 at 14:09, Allan Odgaard mailinglist@textmate.org wrote:
On 6 Jul 2015, at 15:05, Jon Clayden wrote:
If the latter, are you able to select this via View → Font → Show Fonts?
Yes, the latter. And yes, I can see it in the fonts pane (see attached screenshot). I just want to make it stick for all new windows.
Try remove all your custom font settings from .tm_properties and then set it via the View → Font menu.
It should save the proper name in Global.tmProperties (under AppSupport). You can look there for how it should be spelled out in .tm_properties, if you want to move the setting to ~/.tm_properties — though I would recommend avoid setting font “manually” via .tm_properties.
OK, so the choice of font via the menu is persistent? I was always under the impression that ~/.tm_properties was the "correct" way of setting a default font, since an (admittedly old) blog post seems to document it as such. If not I will stop using that approach, but for the record the right spelling seems to be "SourceCodePro-Medium".
Thanks for the quick response.
Jon
On 6 Jul 2015, at 15:20, Jon Clayden wrote:
OK, so the choice of font via the menu is persistent? I was always under the impression that ~/.tm_properties was the "correct" way of setting a default font, since an (admittedly old) blog post seems to document it as such. If not I will stop using that approach, but for the record the right spelling seems to be "SourceCodePro-Medium".
The first alpha lacked GUI for many settings, so ~/.tm_properties was the only way to set manny things, which is why you’ll see it referenced.
But in general, when there is a GUI setting, I recommend using it, as it’s less likely to cause problems and more likely to “just work”.