<?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[Copy &#x2F; Swap to Layer deletes local guides]]></title><description><![CDATA[<p dir="auto">Is this a preference that can be toggled some how or is this a bug? When flipping the contents of a layer around, all guides are deleted.</p>
]]></description><link>https://forum.robofont.com/topic/538/copy-swap-to-layer-deletes-local-guides</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 04:56:46 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/538.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Nov 2018 06:29:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Copy &#x2F; Swap to Layer deletes local guides on Sat, 17 Nov 2018 07:30:43 GMT]]></title><description><![CDATA[<p dir="auto">Is this a preference that can be toggled some how or is this a bug? When flipping the contents of a layer around, all guides are deleted.</p>
]]></description><link>https://forum.robofont.com/post/1848</link><guid isPermaLink="true">https://forum.robofont.com/post/1848</guid><dc:creator><![CDATA[FosterType]]></dc:creator><pubDate>Sat, 17 Nov 2018 07:30:43 GMT</pubDate></item><item><title><![CDATA[Reply to Copy &#x2F; Swap to Layer deletes local guides on Sat, 17 Nov 2018 11:38:20 GMT]]></title><description><![CDATA[<p dir="auto">hi Dave, thanks for reporting it. I think it’s a bug, and I’ve created an issue for it.</p>
<p dir="auto">in the meantime, here’s a workaround so you can flip layers and keep guides:</p>
<pre><code class="language-python">glyph = CurrentGlyph()

layer1 = 'foreground'
layer2 = 'background'

guides1 = glyph.getLayer(layer1).guidelines
guides2 = glyph.getLayer(layer2).guidelines

glyph.flipLayers(layer1, layer2)

for guide in guides2:
    glyph.getLayer(layer1).appendGuideline((guide.x, guide.y), guide.angle, color=guide.color)

for guide in guides1:
    glyph.getLayer(layer2).appendGuideline((guide.x, guide.y), guide.angle, color=guide.color)
</code></pre>
]]></description><link>https://forum.robofont.com/post/1849</link><guid isPermaLink="true">https://forum.robofont.com/post/1849</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Sat, 17 Nov 2018 11:38:20 GMT</pubDate></item><item><title><![CDATA[Reply to Copy &#x2F; Swap to Layer deletes local guides on Mon, 19 Nov 2018 02:09:52 GMT]]></title><description><![CDATA[<p dir="auto">Hey Gustavo,</p>
<p dir="auto">Thanks for that, works great.</p>
<p dir="auto">D</p>
]]></description><link>https://forum.robofont.com/post/1852</link><guid isPermaLink="true">https://forum.robofont.com/post/1852</guid><dc:creator><![CDATA[FosterType]]></dc:creator><pubDate>Mon, 19 Nov 2018 02:09:52 GMT</pubDate></item></channel></rss>