rochus-keller / Cedar

Tools to study the Xerox Cedar/Mesa source code and documentation published by the Computer History Museum
GNU General Public License v3.0
1 stars 0 forks source link

Text not shown on Ubuntu 24.10 #1

Open dlemos opened 3 months ago

dlemos commented 3 months ago

I tried just building and running but I had to change the BUSY file and add _HAVEFONTCONFIG to the list of required submodules. Not sure if I was doing it right but setting the environment variable _QT_QPAFONTDIR to /usr/share/fonts did not fix text not be shown anywhere in the window.

rochus-keller commented 3 months ago

You don't need fontconfig; just put a font in the local ~/.fonts directory (i.e. by clicking install in the font viewer dialog box). Another way is to add some fonts via Qt resource and explicitly loading it in main() as e.g. done here: https://github.com/rochus-keller/FreePascal/blob/bcca509890e0591f0a5bcd626dd8e3f50e865069/FpCodeNavigator.cpp#L877.

I didn't spend much time with the Cedar project because soon after my post I got confirmation by an original Cedar developer that OO was not implemented; so it's just a complicated procedural language. Otherwise I likely would have added these features.

dlemos commented 3 months ago

Ok, I might have tried to put fonts in ~/fonts instead of ~/.fonts before and I didn't bothered to look further moved to link with fontconfig. Thanks!

I probably don't have what it takes but I'm looking for a way to get some of the old Cedar software to run on Linux. It's a long shot but I'm counting on at least learning as I try.

rochus-keller commented 3 months ago

What kind of software is it, and how big?