<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2194: wxt  terminal messing around with any label (MacOSX)</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/bugs/2194/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/bugs/2194/</id><updated>2020-06-02T17:41:00.271000Z</updated><subtitle>Recent changes to 2194: wxt  terminal messing around with any label (MacOSX)</subtitle><entry><title>#2194 wxt  terminal messing around with any label (MacOSX)</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#2c97/a68d" rel="alternate"/><published>2020-06-02T17:41:00.271000Z</published><updated>2020-06-02T17:41:00.271000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.netfecdf208ede65121a44bc4fb50756f2a9b899966</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;So far as I can tell this is a slow-moving train wreck upstream.  See discussion here:&lt;br/&gt;
&lt;a href="https://github.com/harfbuzz/harfbuzz/issues/2394#issuecomment-626254448" rel="nofollow"&gt;https://github.com/harfbuzz/harfbuzz/issues/2394#issuecomment-626254448&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I really don't know what is going to come out of this moving forward.  It seems that the primary developers have decided that it is more important to support new fonts on extremely high-resolution displays than it is to support old fonts on what you and I would consider a "normal" display.  Maybe upstream distros will fork and maintain an older (working) version of pango?  Maybe they will at least provide a list of supported vs unsupported fonts?  Maybe some backwards-compatibility setting will be added to the library?&lt;/p&gt;
&lt;p&gt;My understanding of the detailed nature of this problem is limited.  I gather it is largely due to harfbuzz  not handling hinting.   So perhaps disabling hinting would fix or improve things for you, a considerably less drastic change than degrading the resolution by 20-fold.  Since I don't see the problem here I can't usefully experiment.&lt;/p&gt;
&lt;p&gt;Meanwhile if I follow the trail of your earlier bug report to cairo-&amp;gt;pango I see that other projects are reporting the same sort of errors from pango 1.44 on OSX:&lt;br/&gt;
&lt;a href="https://gitlab.gnome.org/GNOME/librsvg/-/issues/520#note_627033" rel="nofollow"&gt;https://gitlab.gnome.org/GNOME/librsvg/-/issues/520#note_627033&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So yes, it's an upstream problem.   Possibly we could work around it be turning off hinting, but that would have to be explored by someone who is seeing the problem.  Can you do the experiment?  What happens if you replace  hinting = 100 with hinting = 1 everywhere in &lt;code&gt;.../term/cairo.trm&lt;/code&gt; and &lt;code&gt;.../src/wxterminal/gp_cairo.c&lt;/code&gt;?     Or may hinting=0 ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label (MacOSX)</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#2c97" rel="alternate"/><published>2020-06-02T08:58:59.493000Z</published><updated>2020-06-02T08:58:59.493000Z</updated><author><name>tom</name><uri>https://sourceforge.net/u/myfunusername/</uri></author><id>https://sourceforge.net7d12a838c38aeb872a8e315e2825f6131f7e8d63</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/sfeam/"&gt;@sfeam&lt;/a&gt; : a gentle bump on this: would the &lt;code&gt;GP_CAIRO_SCALE&lt;/code&gt; fix above mean that it's not an upstream bug? &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label (MacOSX)</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#cbb7" rel="alternate"/><published>2020-04-06T12:52:59.691000Z</published><updated>2020-04-06T12:52:59.691000Z</updated><author><name>tom</name><uri>https://sourceforge.net/u/myfunusername/</uri></author><id>https://sourceforge.netdcd110c3e778efd03fa65847d9b4c9edf6b2ae2a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I could get rid of the artifact by changing line 84 of &lt;code&gt;src/wxterminal/gp_cairo.h&lt;/code&gt;&lt;br/&gt;
setting &lt;code&gt;GP_CAIRO_SCALE&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt; rather than &lt;code&gt;20&lt;/code&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;sed&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="s1"&gt;'s/define\ GP_CAIRO_SCALE\ 20/define\ GP_CAIRO_SCALE\ 1/g'&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;wxterminal&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gp_cairo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Could this help in pinning down the problem?&lt;/p&gt;
&lt;p&gt;(I'm no more sure it's an upstream bug)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label (MacOSX)</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#ffbf" rel="alternate"/><published>2019-12-17T06:34:14.877000Z</published><updated>2019-12-17T06:34:14.877000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.netcd0fd88c0fe38aef8dd49331a57c31aff9456585</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; open-upstream-bug&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label (MacOSX)</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#0522" rel="alternate"/><published>2019-09-28T19:48:37.224000Z</published><updated>2019-09-28T19:48:37.224000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.netba5f91672402f8739be24186de5e5f3ed78f28a5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;summary&lt;/strong&gt;: wxt  terminal messing around with any label --&amp;gt; wxt  terminal messing around with any label (MacOSX)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Priority&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#7586/c2c6" rel="alternate"/><published>2019-09-09T16:23:29.217000Z</published><updated>2019-09-09T16:23:29.217000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net93c7193b5c2bfcd96f3fdde6ab1a296edaf539c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have lib64pango1.0_0-1.44.6-1.mga8 on Mageia (Cauldron) linux. &lt;br/&gt;
No evident problems with fonts for the wxt terminal here.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#7586" rel="alternate"/><published>2019-09-09T15:59:59.735000Z</published><updated>2019-09-09T15:59:59.735000Z</updated><author><name>tom</name><uri>https://sourceforge.net/u/myfunusername/</uri></author><id>https://sourceforge.net3e8e464d0896b258aa6ad904b5e87fd7e931ff21</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;span&gt;[from pango gitlab issue report]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can someone confirm this happens only on macos? &lt;/p&gt;
&lt;p&gt;Could someone test wxt terminal on linux using latest pango v1.44.6 ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#6a6c" rel="alternate"/><published>2019-09-09T12:58:07.023000Z</published><updated>2019-09-09T12:58:07.023000Z</updated><author><name>tom</name><uri>https://sourceforge.net/u/myfunusername/</uri></author><id>https://sourceforge.net38bc699d7606df77802d46ee1f75a9b80e460fbf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Followup: I posted an issue on the right pango gitlab: &lt;a href="https://gitlab.gnome.org/GNOME/pango/issues/422" rel="nofollow"&gt;https://gitlab.gnome.org/GNOME/pango/issues/422&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#39db/36a2/1e4f" rel="alternate"/><published>2019-08-30T18:51:37.281000Z</published><updated>2019-08-30T18:51:37.281000Z</updated><author><name>Alexander Urban</name><uri>https://sourceforge.net/u/alexurba/</uri></author><id>https://sourceforge.netc3c2de61688b08aeb4a9463bfd89345630b7dab8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I can confirm that the same problem occurs for the Cairo-based terminals. So your suspicion Pango is the reason seems correct.&lt;/p&gt;
&lt;p&gt;(I also posted a question on Stackoverflow that brought me here: &lt;a href="https://stackoverflow.com/questions/57698204" rel="nofollow"&gt;https://stackoverflow.com/questions/57698204&lt;/a&gt;)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2194 wxt  terminal messing around with any label</title><link href="https://sourceforge.net/p/gnuplot/bugs/2194/?limit=25#39db/36a2" rel="alternate"/><published>2019-08-30T16:08:03.494000Z</published><updated>2019-08-30T16:08:03.494000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net67036629dc442b7979bb5b46bc85a4858e06fdde</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Do you see this same problem with the other cairo-based terminals?   The wxt pngcairo and pdf terminals all share the same code for text layout.&lt;/p&gt;
&lt;p&gt;If so, I wonder if it may be related to a deliberate change in pango to use harfbuzz rather than cairo to obtain font metrics:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/harfbuzz/harfbuzz/issues/1892" rel="nofollow"&gt;https://github.com/harfbuzz/harfbuzz/issues/1892&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The issue you see is not exactly the same as the one reported there, but they both result from incorrect reported font metrics.  &lt;/p&gt;
&lt;p&gt;On the other hand if you see this problem only with wxt and not with pngcairo or pdf, then something else must be involved.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>