<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Set background image “lock” by script?]]></title><description><![CDATA[<p dir="auto">I can find and alter the image settings in a glyph.lib:</p>
<pre><code class="language-xml">&lt;lib&gt;
    &lt;dict&gt;
      &lt;key&gt;com.typemytype.robofont.Image.Brightness&lt;/key&gt;
      &lt;real&gt;0.6000000238418579&lt;/real&gt;
      &lt;key&gt;com.typemytype.robofont.Image.Contrast&lt;/key&gt;
      &lt;real&gt;1.0&lt;/real&gt;
      &lt;key&gt;com.typemytype.robofont.Image.Saturation&lt;/key&gt;
      &lt;real&gt;1.0&lt;/real&gt;
      &lt;key&gt;com.typemytype.robofont.Image.Sharpness&lt;/key&gt;
      &lt;real&gt;0.4000000059604645&lt;/real&gt;
    &lt;/dict&gt;
  &lt;/lib&gt;
</code></pre>
<p dir="auto">But I don't see a flag for locking the image. Where should I look?</p>
]]></description><link>https://forum.robofont.com/topic/676/set-background-image-lock-by-script</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 12:26:17 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/676.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Jul 2019 09:19:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Set background image “lock” by script? on Thu, 01 Aug 2019 12:11:45 GMT]]></title><description><![CDATA[<p dir="auto">I can find and alter the image settings in a glyph.lib:</p>
<pre><code class="language-xml">&lt;lib&gt;
    &lt;dict&gt;
      &lt;key&gt;com.typemytype.robofont.Image.Brightness&lt;/key&gt;
      &lt;real&gt;0.6000000238418579&lt;/real&gt;
      &lt;key&gt;com.typemytype.robofont.Image.Contrast&lt;/key&gt;
      &lt;real&gt;1.0&lt;/real&gt;
      &lt;key&gt;com.typemytype.robofont.Image.Saturation&lt;/key&gt;
      &lt;real&gt;1.0&lt;/real&gt;
      &lt;key&gt;com.typemytype.robofont.Image.Sharpness&lt;/key&gt;
      &lt;real&gt;0.4000000059604645&lt;/real&gt;
    &lt;/dict&gt;
  &lt;/lib&gt;
</code></pre>
<p dir="auto">But I don't see a flag for locking the image. Where should I look?</p>
]]></description><link>https://forum.robofont.com/post/2559</link><guid isPermaLink="true">https://forum.robofont.com/post/2559</guid><dc:creator><![CDATA[erik]]></dc:creator><pubDate>Thu, 01 Aug 2019 12:11:45 GMT</pubDate></item><item><title><![CDATA[Reply to Set background image “lock” by script? on Tue, 30 Jul 2019 11:10:25 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/20">@erik</a>,</p>
<p dir="auto">locking background images is a global setting named <code>glyphViewLockImages</code>.</p>
<p dir="auto">it can be modified in the <a href="https://robofont.com/documentation/workspace/preferences-editor/" rel="nofollow">Preferences Editor</a>, or using a script:</p>
<pre><code class="language-python"># toggle background images lock
from mojo.UI import getDefault, setDefault
value = not getDefault("glyphViewLockImages")
setDefault("glyphViewLockImages", value)
</code></pre>
<p dir="auto">groeten!</p>
]]></description><link>https://forum.robofont.com/post/2560</link><guid isPermaLink="true">https://forum.robofont.com/post/2560</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Tue, 30 Jul 2019 11:10:25 GMT</pubDate></item><item><title><![CDATA[Reply to Set background image “lock” by script? on Wed, 31 Jul 2019 06:52:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi Gustavo, thank you! Ok, that explains it. I assumed the lock was for each glyph separately.</p>
]]></description><link>https://forum.robofont.com/post/2562</link><guid isPermaLink="true">https://forum.robofont.com/post/2562</guid><dc:creator><![CDATA[erik]]></dc:creator><pubDate>Wed, 31 Jul 2019 06:52:31 GMT</pubDate></item></channel></rss>