<?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 Re: Font issue between Windows and Mac in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121173#M14110</link>
    <description>Thank you so much, everyone. I'm really new at this.&lt;BR /&gt;
&lt;BR /&gt;
Joachim, your code is way over my league but...I kinda get it. And it seems like a good practice.&lt;BR /&gt;
&lt;BR /&gt;
Juha, I didn't know that before. I'll omit the width and height as you suggested and see how it goes.&lt;BR /&gt;
&lt;BR /&gt;
Matthew, somehow I'm glad it's "a common problem", not just "my problem" &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;. This platform-crossing thing will probably exist forever.</description>
    <pubDate>Sat, 23 Feb 2013 03:51:40 GMT</pubDate>
    <dc:creator>Palawat</dc:creator>
    <dc:date>2013-02-23T03:51:40Z</dc:date>
    <item>
      <title>Font issue between Windows and Mac</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121168#M14105</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
I'm starting to learn about interface scripting. I found out that , with ui_outfield, the result is not the same on Windows and Mac. Text that looks fine on Windows shows up clipped or missing on Mac.&lt;BR /&gt;
&lt;BR /&gt;
As a Windows user, I can go to regedit to see/edit the Font Description (right now I'm using Tahoma) but I don't know how to obtain that kind of info on Mac.&lt;BR /&gt;
&lt;BR /&gt;
Which font should I use to avoid this problem? Given the same ui_outfield's width and height, and the text will looks the same on both platforms.&lt;BR /&gt;
&lt;BR /&gt;
Any suggestion is appreciated.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:34:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121168#M14105</guid>
      <dc:creator>Palawat</dc:creator>
      <dc:date>2023-05-24T10:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Font issue between Windows and Mac</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121169#M14106</link>
      <description>This is a common problem. I've seen it in other cross platform programs as well. Not sure what the fix is (if any). I'd be delighted to know if there is one.</description>
      <pubDate>Fri, 22 Feb 2013 18:28:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121169#M14106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-22T18:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Font issue between Windows and Mac</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121170#M14107</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
If I remember right from my Macromedia Director studies long ago:&lt;BR /&gt;
&lt;BR /&gt;
It happens because (for historical reasons) Macs have 72 pixels&lt;BR /&gt;
per inch on screen and printed - where PC:s have 96 on screen &lt;BR /&gt;
and 72 printed.&lt;BR /&gt;
&lt;BR /&gt;
That means for example that 9 points high text in Mac is 12 point &lt;BR /&gt;
high in PC, thus needing more space on screen.</description>
      <pubDate>Fri, 22 Feb 2013 18:56:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121170#M14107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-22T18:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Font issue between Windows and Mac</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121171#M14108</link>
      <description>The width and height of the Outfield does not help. &lt;BR /&gt;
The text size is given by UI_STYLE ( 0, 1, 2) &lt;BR /&gt;
You can request, if the object runs on Windows, so you are able to define different styles. You need to experiment a bit. &lt;BR /&gt;
 
&lt;PRE&gt; 
Example: 
 
Dose = 0 
GDL = REQ("GDL_Version") 
sts = REQUEST("Name_of_program", "",TeX) 
IF STRSTR(TeX,".EXE") OR STRSTR(TeX,".exe") THEN Dose=1 
 
IF Dose = 1 THEN tx1 = 0 ELSE tx1 = 1 
 
UI_STYLE tx1, 0 
&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2013 19:12:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121171#M14108</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2013-02-22T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Font issue between Windows and Mac</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121172#M14109</link>
      <description>Hello,&lt;BR /&gt;
Have you tried just give the expression and the x,y coordinates?&lt;BR /&gt;
Omitting width and height makes the text self wrapping.&lt;BR /&gt;

&lt;PRE&gt;UI_OUTFIELD expression, x, y [, width, height [, flags]]
...
...
width, height:&amp;nbsp;width and height of the text box. If omitted, the text box will wrap around the text as tight as possible for the given font.&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2013 19:53:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121172#M14109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-22T19:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Font issue between Windows and Mac</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121173#M14110</link>
      <description>Thank you so much, everyone. I'm really new at this.&lt;BR /&gt;
&lt;BR /&gt;
Joachim, your code is way over my league but...I kinda get it. And it seems like a good practice.&lt;BR /&gt;
&lt;BR /&gt;
Juha, I didn't know that before. I'll omit the width and height as you suggested and see how it goes.&lt;BR /&gt;
&lt;BR /&gt;
Matthew, somehow I'm glad it's "a common problem", not just "my problem" &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;. This platform-crossing thing will probably exist forever.</description>
      <pubDate>Sat, 23 Feb 2013 03:51:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Font-issue-between-Windows-and-Mac/m-p/121173#M14110</guid>
      <dc:creator>Palawat</dc:creator>
      <dc:date>2013-02-23T03:51:40Z</dc:date>
    </item>
  </channel>
</rss>

