<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>const array missing element</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61085/const-array-missing-element</link><description>I am using the nRF GFX library to print some text on an LCD. The font, prepared with The Dot Factory v.0.1.4, is stored in flash per the examples in the sdk. 
 The problem is that all characters in the table after the &amp;quot;\&amp;quot; are offset by one so that the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 03 Apr 2021 11:16:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61085/const-array-missing-element" /><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/302918?ContentTypeID=1</link><pubDate>Sat, 03 Apr 2021 11:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:287b54c8-be4b-430d-ba76-aec1f1f53896</guid><dc:creator>SiR_Jonny</dc:creator><description>&lt;p&gt;In The Dot Factory you can set the Comments -&amp;gt; Style to &amp;quot;C&amp;quot;, then it will use /* */ style comments and you don&amp;#39;t have to manually fix the generated fonts. I assume this is why the example fonts work correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/248524?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 14:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f9c0fa4-aedf-43e7-ae82-8de4250e4821</guid><dc:creator>Jas99</dc:creator><description>&lt;p&gt;Ya, that works too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/248510?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 14:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0d4b139-0210-4b66-adc8-3fb6ca63191e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So my original guess turned out to be correct?!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62e.svg" title="Open mouth"&gt;&amp;#x1f62e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What IDE &amp;amp; toolchain are you using? You should probably feed this back to them ...&lt;/p&gt;
&lt;p&gt;What happens if you use /* ... */ comments instead ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/248509?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 14:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f53ef3da-dd38-451a-bc51-6321150e3f2d</guid><dc:creator>Jas99</dc:creator><description>&lt;p&gt;Thank you, that did it!&lt;/p&gt;
&lt;p&gt;So the &amp;#39;\&amp;#39; in the comments was escaping the following entry!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/248497?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 13:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7243a26f-9e43-4727-9862-313435a77a61</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hmm, and do you see the same issue if you use the 8pt fonts? Could you try to remove the // \ comment after {11,2200} and see if that changes anything?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/248488?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 13:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5009dc48-f757-4096-a01d-c1a5f6da97ce</guid><dc:creator>Jas99</dc:creator><description>&lt;p&gt;No I haven&amp;#39;t compared but I&amp;#39;m using the same settings for both, just changing the initialisation of the fonts to the new ones. See below, I comment out the 8 pt referenc and use 10 pt instead.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//extern const nrf_gfx_font_desc_t orkney_8ptFontInfo;
//extern const FONT_INFO orkney_8ptFontInfo;               
//static const FONT_INFO * p_font = &amp;amp;orkney_8ptFontInfo;   

extern const nrf_gfx_font_desc_t orkney_10ptFontInfo;
extern const FONT_INFO orkney_10ptFontInfo;              
static const FONT_INFO * p_font = &amp;amp;orkney_10ptFontInfo;  

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/248466?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 13:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44778715-d60d-4833-8c53-aaab40271b8f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Have you compared the compiler and linker settings in your project vs the examples in the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/248421?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 11:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38ad99ad-1e29-4d01-ad4d-415e5a813e6f</guid><dc:creator>Jas99</dc:creator><description>&lt;p&gt;No, I don&amp;#39;t believe so. It works fine with the&amp;nbsp;examples supplied in the SDK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: const array missing element</title><link>https://devzone.nordicsemi.com/thread/248415?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 11:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14dcfafa-bb55-48e9-a5d5-b037e8d548f0</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Is the &amp;#39;\&amp;#39; being seen as an escape ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>