Setting default font style and size in texteditSolved

Participant
Discussion
3 weeks ago

Hey folks,

I’m pretty new to configuration profiles and tried setting one up, but it didn’t work as expected. I use textedit on my Mac a lot, and every time I open it, it resets to the default font and size. I like things a certain way, so having to change it manually every time is a bit annoying.

I heard that a config profile could help, so I gave it a shot. The font size changes fine, but the font itself stays the same. Here’s what I used:

Any idea what I’m doing wrong? Would appreciate the help!

Replies (5)

Marked SolutionPending Review
Participant
3 weeks ago
Marked SolutionPending Review

Did you check if the font you’re using is located in /System/Library/Fonts or /Library/Fonts? The font name in the config profile has to match the exact name of the font file. Also, try restarting your device—sometimes the profile won’t apply properly until after a reboot.

Marked SolutionPending Review
Participant
3 weeks ago
Marked SolutionPending Review

I used the exact font name, and it didn’t work at first. But after restarting my Mac, textedit applied the correct font and size. Looks like that was the issue! Thanks for the help! 

Marked SolutionPending Review
Participant
2 weeks ago
Marked SolutionPending Review

Hey there, I tried the above, and the font is definitely in the correct location, and I used the exact name as well, but it still isn’t working for me. If it worked for @cameron, then it should work for me as well, right? I’m a bit confused.

Marked SolutionPending Review
Participant
1 week ago
Marked SolutionPending Review

Just to clarify, the NSFont and NSFontSize keys apply to rich text, while NSFixedPitchFont and NSFixedPitchFontSize are used for plain text. If you’re using plain text, try this instead:

Marked SolutionPending Review
Participant
1 week ago
Marked SolutionPending Review

Oh, that makes sense! I was using plain text all along. My bad—tried this, and it works perfectly now. Thanks!

Save