XQuartz upgrade breaks underscore display in prolog edit window!!!

98 views
Skip to first unread message

Rance DeLong

unread,
Nov 25, 2016, 5:08:38 AM11/25/16
to SWI-Prolog
I accepted an XQuartz upgrade to 2.7.11 on Mac OS X Sierra and now my SWI prolog edit windows don't display underscore "_" characters!!! This is a disaster! I have no idea how to fix this or go back! Help!

Martin Sondergaard

unread,
Nov 25, 2016, 7:28:04 PM11/25/16
to swi-p...@googlegroups.com
I'm seeing a similar issue in Linux Mint with Cinnamon.
It may be related.

When I use the guitracer, most of the text displays the "_" characters
like " ",
so they look like spaces.

I think this is probably an issue with the guitracer using poor fonts.
Possibly Linux Mint doesn't have the right fonts installed by default.

Is there a way to change the fonts used by the guitracer?

Is there a way to find out which fonts are needed? I may be able
to get some fonts from the software repository, but I need to know
which ones to get.

--
Martin Sondergaard.

Jan Wielemaker

unread,
Nov 26, 2016, 4:35:36 AM11/26/16
to Martin Sondergaard, swi-p...@googlegroups.com
I have looked at this issue after starting using Fedora on one of my
development machines. I thought it would be clip-area mistake, but it is
not. Some googling revealed this is a bug in the font that causes it to
reduce the _ to 0-pixels in some scaling factors. The solution is to
change the scaling factor a little. You do that by:

- Open a PceEmacs window (?- emacs.)
- Use Edit/Editor preferences
<if you have none installed yet it asks you to install the default>
- Go to the end of the file
- Uncomment (remove !)

!font.scale: 1.4

- Adjust the scale as desired
- Stop and restart Prolog

Alternatively, you can redefine display.system_fonts just above, where
you can also bind to specific OS fonts, but the syntax is OS dependent
and rather complicated.

The ideal solution is probably to change the default font specification
for xfontconfig a little to get a really working font on most
configurations. Not sure how though ...

Cheers --- Jan

Rance DeLong

unread,
Nov 26, 2016, 5:25:53 AM11/26/16
to Jan Wielemaker, Martin Sondergaard, swi-p...@googlegroups.com
Yes! That worked for me. Thank you so much!
-Rance
> --
> You received this message because you are subscribed to a topic in the Google Groups "SWI-Prolog" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/swi-prolog/yrl1sy-nz0E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to swi-prolog+...@googlegroups.com.
> Visit this group at https://groups.google.com/group/swi-prolog.
> For more options, visit https://groups.google.com/d/optout.

vitto.m...@gmail.com

unread,
Dec 13, 2016, 10:17:41 AM12/13/16
to SWI-Prolog, li...@talkingrobot.org
Thank you very much, I had the same problem and this solved! Thanks again
Reply all
Reply to author
Forward
0 new messages