I had set the font of my project/folder via the View->Font menu to "ProFontWindows" 9
In my folder, I create .tm_properties with the following content.
TM_GIT = "/usr/local/bin/git"
TEST_DEFAULT_FONT="$fontName/$fontSize"
["*.txt"] fontName = "Menlo" fontSize = 16 TEST_TXT_FONT="$fontName/$fontSize"
In a txt file, I execute the following line with ^R
echo $TEST_TXT_FONT =Menlo/16
echo $TEST_DEFAULT_FONT =/
But the problem is the the buffer is not rendered with Menlo size 16.
Is my font setting via the menu overriding the font setting in the .tm_properties file? How do I reset it if that's the case?
Thanks
On 14/01/2012, at 08.11, Chris Wong wrote:
["*.txt"] fontName = "Menlo" fontSize = 16
Some of the View menu settings are only read from .tm_properties when initializing the text view, and not when switching documents, so file-type specific settings will not work (yet).
Thanks Allan! I tried to move the fontName and fontSize out to the global level, but the font is not changed. I have two different folders with two different fontName and fontSize in each folder as the followings. Both folders open up in "Monaco", the default font. Something is not working right. I noticed a "-" sign icon on some files (including the .tm_properties file) and folders. What does it mean?
In folder A:
TM_GIT = "/usr/local/bin/git"
fontName = "Menlo" fontSize = 12
[ "*.{txt,md,mdown,markdown}" ] softWrap = true
In folder B:
fontName = "Monaco" fontSize = 12
On Wed, Jan 25, 2012 at 2:28 AM, Allan Odgaard mailinglist@textmate.orgwrote:
On 14/01/2012, at 08.11, Chris Wong wrote:
["*.txt"] fontName = "Menlo" fontSize = 16
Some of the View menu settings are only read from .tm_properties when initializing the text view, and not when switching documents, so file-type specific settings will not work (yet).
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 17/02/2012, at 04.43, Chris Wong wrote:
Thanks Allan! I tried to move the fontName and fontSize out to the global level […]
Sorry if I was not specific enough; only the root section of ~/.tm_properties count as global, as all other .tm_properties are “folder local”.