<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 3 Jul 2017, at 23:07, じょいすじょん wrote:</p>

</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">Setting or variable 'fontName' not found<br>
[…]<br>
Is there a modern alternative to fontName?<br>
Or, even better, a reference for that and other keys?</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">There is no good solution for this.</p>

<p dir="auto">The <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">tm_query</code> tool is simply reading your various <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">.tm_properties</code> files (including the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">Default.tmProperties</code> included with TextMate) and returning the requested value (or exiting with a non-zero return code if not found). So there is no fixed list of keys.</p>

<p dir="auto">Originally the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">Default.tmProperties</code> file had a setting for <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">fontName</code> but because Apple has changed the default fixed width font, it wasn’t good to put a hardcoded name in <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">Default.tmProperties</code> (since TextMate should default to the fixed width font that is default for the user’s OS version).</p>

<p dir="auto">I am not sure for what the TextMate Jedi Completion bundle uses the font name, but it will need its own fallback, incase <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">$TM_QUERY</code> exits with a non-zero return code.</p>

<p dir="auto">You can hardcode the fallback as <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">Menlo-Regular</code> but technically the user can override the system’s default fixed width font using the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">NSFixedPitchFont</code> user defaults setting.</p>

<p dir="auto">This can be obtained using: <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">defaults read -g NSFixedPitchFont</code></p>

<p dir="auto">The default size can be changed using the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">NSFixedPitchFontSize</code> key.</p>
</div>
</div>
</body>
</html>