<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Xquartz on Symbolics LISP Engineering</title><link>https://symbolics.lisp.engineer/tag/xquartz/</link><description>Recent content in Xquartz on Symbolics LISP Engineering</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 03 Jul 2016 21:19:02 +0000</lastBuildDate><atom:link href="https://symbolics.lisp.engineer/tag/xquartz/index.xml" rel="self" type="application/rss+xml"/><item><title>Genera X11 Fonts on Mac</title><link>https://symbolics.lisp.engineer/genera-x11-fonts-on-mac/</link><pubDate>Sun, 03 Jul 2016 17:50:53 +0000</pubDate><guid>https://symbolics.lisp.engineer/genera-x11-fonts-on-mac/</guid><description>&lt;p&gt;Although away, I have my laptop with me and decided to try to get Xquartz running with the Genera X11 fonts.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Find the Genera X11 fonts (in &lt;code&gt;bdf&lt;/code&gt; format) and transfer them to your Mac. I put them in &lt;code&gt;~/x11/fonts/genera/&lt;/code&gt;. On Genera system they will be in the LMFS somewhere and can be transferred using NFS.&#10;&lt;ul&gt;&#10;&lt;li&gt;If necessary: On the Mac, rename the fonts to lower case and get rid of any Genera version number. &lt;code&gt;tr&lt;/code&gt; is good for case conversion and &lt;code&gt;for i in * ; do echo $i `echo $i | sed &amp;rsquo;s/\.~.*//&amp;rsquo;` ; done&lt;/code&gt; works to remove version numbers. (Man, this blog software makes it difficult to put commands with backticks and backslashes into code blocks.)&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;Alternatively, you can mount the ISO9660 partition of your Genera 8.3 distribution CD on the Mac using a command like &lt;code&gt;mkdir /Volumes/CD ; sudo mount_cd9660 -e /dev/disk3 /Volumes/CD&lt;/code&gt; and then copy the &lt;code&gt;bdf&lt;/code&gt; and other X11 font files. (By default macOS mounts the HFS partition so you will only see the MacIvory files.)&#10;&lt;ul&gt;&#10;&lt;li&gt;Add the &lt;code&gt;g&lt;/code&gt; option to the &lt;code&gt;mount_cd9660&lt;/code&gt; to see the Genera version numbers appended to the filenames - but you&amp;rsquo;ll have to remove these when you copy the files.&lt;/li&gt;&#10;&lt;li&gt;(Add the &lt;code&gt;r&lt;/code&gt; option to the mount command to see the file system without Rockridge format, for curiosity sake. This also changes the version number format and makes them all caps. You can also use the &lt;code&gt;j&lt;/code&gt; option to disable Joilet.)&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;sudo umount /Volumes/CD&lt;/code&gt; to unmount it; the regular &lt;code&gt;diskutil unmount&lt;/code&gt; and other Mac utilities won&amp;rsquo;t unmount this.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;pre&gt;&lt;code class="language-text"&gt;AdmiralA:~/x11/fonts/genera$ diskutil list&#10;...&#10; #: TYPE NAME SIZE IDENTIFIER&#10; 0: Apple_partition_scheme +636.7 MB disk3&#10; 1: Apple_partition_map 32.3 KB disk3s1&#10; 2: Symbolics_ISO9660 615.4 MB disk3s2&#10; 3: Apple_HFS MacIvory Support 4.2 21.0 MB disk3s3&#10;...&#10;AdmiralA:~$ ls -l /Volumes/CD/sys.sct/x11/fonts/bdf/genera/ | head -5&#10;total 6476&#10;-r-xr-xr-x 1 root wheel 14302 Dec 19 1989 13fgb.bdf.~3~&#10;-r-xr-xr-x 1 root wheel 10623 Dec 19 1989 16fg.bdf.~3~&#10;-r-xr-xr-x 1 root wheel 12451 Dec 19 1989 18fg.bdf.~3~&#10;-r-xr-xr-x 1 root wheel 17481 Dec 19 1989 20vr.bdf.~3~&#10;&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;In the directory with all the font files, run the &lt;code&gt;mkfontdir&lt;/code&gt; program, which will make a file called &lt;code&gt;fonts.dir&lt;/code&gt; which seems to contain a mapping from a filename to a font name.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;pre&gt;&lt;code class="language-text"&gt;AdmiralA:~/x11/fonts/genera$ mkfontdir&#10;AdmiralA:~/x11/fonts/genera$ fgrep genera-cptfont fonts.dir &#10;cptfont.bdf genera-cptfont&#10;cptfontb.bdf genera-cptfontb&#10;cptfontbi.bdf genera-cptfontbi&#10;cptfontc.bdf genera-cptfontc&#10;cptfontcb.bdf genera-cptfontcb&#10;cptfontcc.bdf genera-cptfontcc&#10;cptfonti-german.bdf genera-cptfonti-german&#10;cptfonti.bdf genera-cptfonti&#10;cptfontr.bdf genera-cptfontr&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;In the Xquartz &lt;code&gt;xterm&lt;/code&gt; window, add this font directory to the font path (&lt;code&gt;xset fp+ ~/x11/fonts/genera&lt;/code&gt;) and activate it (&lt;code&gt;xset fp rehash&lt;/code&gt;).&lt;/li&gt;&#10;&lt;li&gt;Using &lt;a href="https://fontforge.github.io/en-US/"&gt;FontForge&lt;/a&gt; I looked at various fonts and determined that &lt;code&gt;genera-cptfont&lt;/code&gt; seems to be the normal Genera console font.&lt;/li&gt;&#10;&lt;li&gt;Test that the fonts are installed by using one: &lt;code&gt;xterm -fn genera-cptfont -fb genera-cptfontb&lt;/code&gt;. Note that as it turns out, these two fonts are not compatible with &lt;code&gt;xterm&lt;/code&gt;&amp;rsquo;s needs (identical bounding boxes) so just use &lt;code&gt;xterm -fn genera-cptfont&lt;/code&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="https://symbolics.lisp.engineer/content/images/2016/07/Screen-Shot-2016-07-03-at-1-41-03-PM.png" alt="XTerm"&gt;&#10;&lt;img src="https://symbolics.lisp.engineer/content/images/2016/07/Screen-Shot-2016-07-03-at-1-43-18-PM.png" alt="XTerm"&gt;&lt;/p&gt;</description></item></channel></rss>