<?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[MultiLine View related questions.]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have two questions regarding the multiline view.</p>
<p dir="auto">1- How can I offset the glyph sequence inside the view? I want the glyphs to appear lower than the border of the view. I can add new line glyph on top, but that also gets affected by setting the line height which is not desireable.</p>
<p dir="auto">2- How can I avoid line breaks when glyphs reach the border. I tried to setDisplayStates using the following dictionary but it doesn't have any effect. Am I missing something?</p>
<pre><code>OPTIONS = {'displayMode': 'Single Line',
'Show Kerning': True,
'Multi Line': False,
'xHeight Cut': False,
'Water Fall': False,
'Single Line': True,
'Inverse': False,
'Show Metrics': False,
'Left to Right': False,
'Right to Left': True,
'Center': True,
'Upside Down': False,
'Stroke': False,
'Fill': True,
'Beam': False,
'Guides': False,
'Blues': False,
'Family Blues': False,
'Show Control glyphs': False,
'Show Space Matrix': False,
'Show Template Glyphs': False,
'showLayers': []}
</code></pre>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.robofont.com/topic/878/multiline-view-related-questions</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 11:04:46 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/878.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jun 2020 16:15:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MultiLine View related questions. on Fri, 12 Jun 2020 22:01:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have two questions regarding the multiline view.</p>
<p dir="auto">1- How can I offset the glyph sequence inside the view? I want the glyphs to appear lower than the border of the view. I can add new line glyph on top, but that also gets affected by setting the line height which is not desireable.</p>
<p dir="auto">2- How can I avoid line breaks when glyphs reach the border. I tried to setDisplayStates using the following dictionary but it doesn't have any effect. Am I missing something?</p>
<pre><code>OPTIONS = {'displayMode': 'Single Line',
'Show Kerning': True,
'Multi Line': False,
'xHeight Cut': False,
'Water Fall': False,
'Single Line': True,
'Inverse': False,
'Show Metrics': False,
'Left to Right': False,
'Right to Left': True,
'Center': True,
'Upside Down': False,
'Stroke': False,
'Fill': True,
'Beam': False,
'Guides': False,
'Blues': False,
'Family Blues': False,
'Show Control glyphs': False,
'Show Space Matrix': False,
'Show Template Glyphs': False,
'showLayers': []}
</code></pre>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.robofont.com/post/3391</link><guid isPermaLink="true">https://forum.robofont.com/post/3391</guid><dc:creator><![CDATA[bahman]]></dc:creator><pubDate>Fri, 12 Jun 2020 22:01:05 GMT</pubDate></item><item><title><![CDATA[Reply to MultiLine View related questions. on Fri, 12 Jun 2020 22:02:30 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/80">@bahman</a>,</p>
<p dir="auto">1. the origin position is defined in a private attribute of the naked <code>glyphLineView</code>, there’s no public API for it yet. it’s a single buffer value which is used for both <code>x</code> and <code>y</code> origin:</p>
<pre><code class="language-python">from mojo.UI import CurrentSpaceCenter
S = CurrentSpaceCenter()
S.glyphLineView._glyphLineView._buffer = 20 # default is 15
S.updateGlyphLineView()
</code></pre>
<p dir="auto">(this is a bit hacky, use it with care ;)</p>
<p dir="auto">2. the <em>Single Line View</em> option should display a single line without any breaks (horizontal scrolling). this works for me:</p>
<pre><code class="language-python">from mojo.UI import CurrentSpaceCenter
sp = CurrentSpaceCenter()
states = sp.glyphLineView.getDisplayStates()
states['displayMode'] = "Single Line"
sp.glyphLineView.setDisplayStates(states)
</code></pre>
<p dir="auto">please give it a try… thanks!</p>
]]></description><link>https://forum.robofont.com/post/3398</link><guid isPermaLink="true">https://forum.robofont.com/post/3398</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Fri, 12 Jun 2020 22:02:30 GMT</pubDate></item><item><title><![CDATA[Reply to MultiLine View related questions. on Sat, 13 Jun 2020 12:25:07 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/22">@gferreira</a></p>
<ol>
<li>
<p dir="auto">Thank you! This works very well. Right now it's only one value, If there will be a method to specify all the borders it would be perfect (left, right, top, bottom).</p>
</li>
<li>
<p dir="auto">Thanks, this works too. Is it possible to disable line breaks in Multi-Line mode so the remaining text goes outside the view?</p>
</li>
</ol>
]]></description><link>https://forum.robofont.com/post/3399</link><guid isPermaLink="true">https://forum.robofont.com/post/3399</guid><dc:creator><![CDATA[bahman]]></dc:creator><pubDate>Sat, 13 Jun 2020 12:25:07 GMT</pubDate></item><item><title><![CDATA[Reply to MultiLine View related questions. on Sat, 13 Jun 2020 19:45:06 GMT]]></title><description><![CDATA[<p dir="auto">This is a complete hack but you can fake a non-breaking multiline by changing the width.</p>
<pre><code>from mojo.UI import CurrentSpaceCenter
sc = CurrentSpaceCenter()
xywh = list(sc.glyphLineView.getPosSize())
xywh[2] = 10000
sc.glyphLineView.setPosSize(xywh)
</code></pre>
<p dir="auto">and separate x/y controls for _buffer would be great</p>
]]></description><link>https://forum.robofont.com/post/3404</link><guid isPermaLink="true">https://forum.robofont.com/post/3404</guid><dc:creator><![CDATA[okaytype]]></dc:creator><pubDate>Sat, 13 Jun 2020 19:45:06 GMT</pubDate></item><item><title><![CDATA[Reply to MultiLine View related questions. on Sat, 13 Jun 2020 20:04:38 GMT]]></title><description><![CDATA[<p dir="auto">Well that was fast... from the beta posted immediately after I hit Submit</p>
<pre><code>from mojo.UI import CurrentSpaceCenter
sc = CurrentSpaceCenter()
x, y = sc.getOffset()
sc.setOffset((x, y*2))
</code></pre>
]]></description><link>https://forum.robofont.com/post/3405</link><guid isPermaLink="true">https://forum.robofont.com/post/3405</guid><dc:creator><![CDATA[okaytype]]></dc:creator><pubDate>Sat, 13 Jun 2020 20:04:38 GMT</pubDate></item><item><title><![CDATA[Reply to MultiLine View related questions. on Sat, 13 Jun 2020 21:36:30 GMT]]></title><description><![CDATA[<p dir="auto">r e a d i n g y o u r m i n d r i g h t n o w</p>
]]></description><link>https://forum.robofont.com/post/3406</link><guid isPermaLink="true">https://forum.robofont.com/post/3406</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Sat, 13 Jun 2020 21:36:30 GMT</pubDate></item><item><title><![CDATA[Reply to MultiLine View related questions. on Sun, 14 Jun 2020 19:40:45 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for this!</p>
]]></description><link>https://forum.robofont.com/post/3408</link><guid isPermaLink="true">https://forum.robofont.com/post/3408</guid><dc:creator><![CDATA[bahman]]></dc:creator><pubDate>Sun, 14 Jun 2020 19:40:45 GMT</pubDate></item></channel></rss>