<?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 handling with the API in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Font-handling-with-the-API/m-p/356116#M1117</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Can't figure out how to use fonts with the API.&lt;/P&gt;&lt;P&gt;I have a dialog with a font popup,&amp;nbsp; then try to use the selected font to create a text element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;element.text.font is of type short, but I can't figure out how to retreive a short value from the fontpopup in the dialog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at the&amp;nbsp; Element_test, DG_Test&amp;nbsp; in the API exemple, but everywhere the font is hardcoded or use ACAPI_Element_GetDefaults.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:28:47 GMT</pubDate>
    <dc:creator>julienK</dc:creator>
    <dc:date>2022-09-16T10:28:47Z</dc:date>
    <item>
      <title>Font handling with the API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Font-handling-with-the-API/m-p/356116#M1117</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Can't figure out how to use fonts with the API.&lt;/P&gt;&lt;P&gt;I have a dialog with a font popup,&amp;nbsp; then try to use the selected font to create a text element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;element.text.font is of type short, but I can't figure out how to retreive a short value from the fontpopup in the dialog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at the&amp;nbsp; Element_test, DG_Test&amp;nbsp; in the API exemple, but everywhere the font is hardcoded or use ACAPI_Element_GetDefaults.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:28:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Font-handling-with-the-API/m-p/356116#M1117</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-09-16T10:28:47Z</dc:date>
    </item>
  </channel>
</rss>

