<?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 Control Font Issue in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/4877190#M77433</link>
    <description>&lt;P&gt;&lt;IMG align="center" src="https://forums.autodesk.com/t5/image/serverpage/image-id/86386iAFF9EC8FF7481F18/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" title="Font.png" alt="Font.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image is my revit add-in program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the same&amp;nbsp;font property of groupbox and all controls in groupbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but only group box font is specified. other controls font is not specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make winform program like revit add-in program like below image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG align="center" border="0" src="https://forums.autodesk.com/t5/image/serverpage/image-id/86388iEDC8228F5ED9A276/image-size/original?v=mpbl-1&amp;amp;px=-1" title="font2.png" alt="font2.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all controls font is specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2014 08:10:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-11T08:10:02Z</dc:date>
    <item>
      <title>Control Font Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/4877190#M77433</link>
      <description>&lt;P&gt;&lt;IMG align="center" src="https://forums.autodesk.com/t5/image/serverpage/image-id/86386iAFF9EC8FF7481F18/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" title="Font.png" alt="Font.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image is my revit add-in program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the same&amp;nbsp;font property of groupbox and all controls in groupbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but only group box font is specified. other controls font is not specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make winform program like revit add-in program like below image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG align="center" border="0" src="https://forums.autodesk.com/t5/image/serverpage/image-id/86388iEDC8228F5ED9A276/image-size/original?v=mpbl-1&amp;amp;px=-1" title="font2.png" alt="font2.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all controls font is specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 08:10:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/4877190#M77433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-11T08:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Control Font Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/4882668#M77434</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will need to look at the actual sample project to see what the problem is. However, from your description this looks like a WinForms issue and not a Revit API issue. Is this a Revit API issue? Or are you seeing this problem only in a Revit Addin? Do you see this problem in a stand alone application?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Gopinath&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 01:23:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/4882668#M77434</guid>
      <dc:creator>gopinath.taget</dc:creator>
      <dc:date>2014-03-13T01:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Control Font Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/4882700#M77435</link>
      <description>&lt;P&gt;BIMS_Keris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not clear to me from your description what exactly is the problem. It looks like the fonts in those two dialogs are the same. What appears different (correct me if I am wrong) is smoothing of the text. While Revit appears to use some level of smoothing &amp;nbsp;for the labels, your dialog does not. As I understand it, WinForms do not expose smoothing property on labels by default. If you so desire, you can override the behavior in OnPaint even of the controls by setting TextRenderingHint to AntiAlias, AntiAliasGridFit, or ClearTypeGridFit. I assume there must be some snippet somewhere to google.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that sound like what you had in mind?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Arnošt Löbel&lt;/P&gt;
&lt;P&gt;Autodesk, Revit R&amp;amp;D&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 02:09:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/4882700#M77435</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2014-03-13T02:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Control Font Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/9871525#M77436</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The grouped objects on the left are not displayed correctly." style="width: 601px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/844602i10BEB041FC8C89B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Loi Font.PNG" alt="The grouped objects on the left are not displayed correctly." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The grouped objects on the left are not displayed correctly.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: The grouped objects on the left are not displayed correctly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I know this problem.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the solution (For example Label):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;public partial class CustomLabel : Label&lt;BR /&gt;{&lt;BR /&gt;private TextRenderingHint _hint = TextRenderingHint.AntiAliasGridFit;&lt;BR /&gt;public TextRenderingHint TextRenderingHint&lt;BR /&gt;{&lt;BR /&gt;get { return this._hint; }&lt;BR /&gt;set { this._hint = value; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;protected override void OnPaint(PaintEventArgs pe)&lt;BR /&gt;{&lt;BR /&gt;pe.Graphics.TextRenderingHint = TextRenderingHint;&lt;BR /&gt;base.OnPaint(pe);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 02:34:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/control-font-issue/m-p/9871525#M77436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-16T02:34:15Z</dc:date>
    </item>
  </channel>
</rss>

