<?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 Font Type Not Working Through Subtype Parameter in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586848#M6274</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having an issue where I have created a font type parameter in an object subtype, however the font type doesn't want to work in the child object.&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="JarrodPhillips_0-1707201317908.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52919i1BDFAB828D996DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JarrodPhillips_0-1707201317908.png" alt="JarrodPhillips_0-1707201317908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See script below:&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;Parameter in subtype = fta_font_type (string)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2D script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;define style "fontStyle1" fta_font_type, fta_font_size, 5, fta_iFont_effects    !LABEL FONT STYLE
style "fontStyle1"&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interface Script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;ui_infield{2} 'fta_font_type', _uiXRight, _uiY, _columnWidth, _fillHeight ui_tooltip "Font Type"
_uiY = _uiY + (_fillHeight + _buttonGap1)&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot for the life of me workout why it's not working, any assistance would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jarrod&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 08:22:45 GMT</pubDate>
    <dc:creator>Jarrod Phillips</dc:creator>
    <dc:date>2024-09-24T08:22:45Z</dc:date>
    <item>
      <title>Font Type Not Working Through Subtype Parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586848#M6274</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having an issue where I have created a font type parameter in an object subtype, however the font type doesn't want to work in the child object.&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="JarrodPhillips_0-1707201317908.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52919i1BDFAB828D996DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JarrodPhillips_0-1707201317908.png" alt="JarrodPhillips_0-1707201317908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See script below:&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;Parameter in subtype = fta_font_type (string)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2D script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;define style "fontStyle1" fta_font_type, fta_font_size, 5, fta_iFont_effects    !LABEL FONT STYLE
style "fontStyle1"&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interface Script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;ui_infield{2} 'fta_font_type', _uiXRight, _uiY, _columnWidth, _fillHeight ui_tooltip "Font Type"
_uiY = _uiY + (_fillHeight + _buttonGap1)&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot for the life of me workout why it's not working, any assistance would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jarrod&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:22:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586848#M6274</guid>
      <dc:creator>Jarrod Phillips</dc:creator>
      <dc:date>2024-09-24T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Font Type Not Working Through Subtype Parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586852#M6275</link>
      <description>&lt;P&gt;That won't give you a list of available fonts.&lt;/P&gt;
&lt;P&gt;You will have to type the font name exactly in that field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can either create your own VALUES list for the 'fta_font_type' variable, where you can list specific font names.&lt;/P&gt;
&lt;P&gt;Or this (in the parameter script) will search your operating system and give you a list of all of the installed fonts.&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 fontNames[]
n = REQUEST("FONTNAMES_LIST", "", fontNames)
VALUES "fta_font_type" fontNames, CUSTOM
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 07:08:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586852#M6275</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-02-06T07:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Font Type Not Working Through Subtype Parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586856#M6276</link>
      <description>&lt;P&gt;Hi Jarrod&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="ToperBarrientos_0-1707203521876.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52920i91DE4EA27AE5BE85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ToperBarrientos_0-1707203521876.png" alt="ToperBarrientos_0-1707203521876.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can change the variable name that represents your text style with the parameter shown on the picture (default by the Label subtype).&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 07:16:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586856#M6276</guid>
      <dc:creator>Toper Barrientos</dc:creator>
      <dc:date>2024-02-06T07:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Font Type Not Working Through Subtype Parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586859#M6277</link>
      <description>&lt;P&gt;Good catch.&lt;/P&gt;
&lt;P&gt;I forgot about these fixed name optional parameters.&lt;/P&gt;
&lt;P&gt;It seems you can use AC_TextFont_&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt; up to AC_TextFont_&lt;FONT color="#FF0000"&gt;8&lt;/FONT&gt;, should you need different fonts for different reasons all in the one object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 07:33:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/586859#M6277</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-02-06T07:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Font Type Not Working Through Subtype Parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/587013#M6284</link>
      <description>&lt;P&gt;All excellent solutions, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 22:06:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/587013#M6284</guid>
      <dc:creator>Jarrod Phillips</dc:creator>
      <dc:date>2024-02-06T22:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Font Type Not Working Through Subtype Parameter</title>
      <link>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/590055#M6390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Showing the font list can be done without parameter script: &lt;A href="https://gdl.graphisoft.com/tips-and-tricks/font-names-list-handling-in-ui-script" target="_blank"&gt;https://gdl.graphisoft.com/tips-and-tricks/font-names-list-handling-in-ui-script&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parameters which have a font list come from libparts under subtype "Library Master". These are executed when the library is loaded, and their parameters' value ranges are inherited by all other library parts. &lt;A href="https://gdl.graphisoft.com/gdl-basics/parameter-logic" target="_blank"&gt;https://gdl.graphisoft.com/gdl-basics/parameter-logic&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:01:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Font-Type-Not-Working-Through-Subtype-Parameter/m-p/590055#M6390</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2024-02-27T10:01:24Z</dc:date>
    </item>
  </channel>
</rss>

