<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GDL：How to get a list of font names with the '@' symbol ？ in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-How-to-get-a-list-of-font-names-with-the-symbol/m-p/374555#M1026</link>
    <description>&lt;P&gt;The font list is long. How do I display only a list of font names with the "@" symbol?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20230328095350.jpg" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35512i29394E94DE903EB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20230328095350.jpg" alt="20230328095350.jpg" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following script is incorrect. How should I write?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dim fontNames[]
n = request("FONTNAMES_LIST", "", fontNames)

if STRSTR ("fontNames", "@") =1 then    !!! ===There is an error here ?
    values "txt_font" fontNames, custom
endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 02:21:26 GMT</pubDate>
    <dc:creator>yongler</dc:creator>
    <dc:date>2023-03-28T02:21:26Z</dc:date>
    <item>
      <title>GDL：How to get a list of font names with the '@' symbol ？</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-How-to-get-a-list-of-font-names-with-the-symbol/m-p/374555#M1026</link>
      <description>&lt;P&gt;The font list is long. How do I display only a list of font names with the "@" symbol?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20230328095350.jpg" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35512i29394E94DE903EB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20230328095350.jpg" alt="20230328095350.jpg" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following script is incorrect. How should I write?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dim fontNames[]
n = request("FONTNAMES_LIST", "", fontNames)

if STRSTR ("fontNames", "@") =1 then    !!! ===There is an error here ?
    values "txt_font" fontNames, custom
endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 02:21:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-How-to-get-a-list-of-font-names-with-the-symbol/m-p/374555#M1026</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2023-03-28T02:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: GDL：How to get a list of font names with the '@' symbol ？</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-How-to-get-a-list-of-font-names-with-the-symbol/m-p/374559#M1027</link>
      <description>&lt;P&gt;You need to iterate through each item in the font list array and create a new array with only the items you want.&amp;nbsp; And then assign that shortened list back to your fontName parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give this a go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dim fontList[]
dim shortFontNames[]
n = request("FONTNAMES_LIST", "", fontList)

k = 1                                   	  !! a separate counter for shortfontnames index
for i = 1 to vardim1(fontList)         		  !! iterate through each font name in the array

	if STRSTR (fontList[i], "@" ) = 1 then    !! check it has an @ symbol in the name  
      	shortFontNames[k] = fontList[i]    	  !! add it to the new lists
    	k = k+1                                 !! increase the separate counter by one 
	endif
next i

values "fontName" shortFontNames&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 03:07:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-How-to-get-a-list-of-font-names-with-the-symbol/m-p/374559#M1027</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2023-03-28T03:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: GDL：How to get a list of font names with the '@' symbol ？</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-How-to-get-a-list-of-font-names-with-the-symbol/m-p/374560#M1028</link>
      <description>&lt;P&gt;Perfect! thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 04:11:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-How-to-get-a-list-of-font-names-with-the-symbol/m-p/374560#M1028</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2023-03-28T04:11:43Z</dc:date>
    </item>
  </channel>
</rss>

