From d63061e696154e108e4a40ba64443b8ddfedf25a Mon Sep 17 00:00:00 2001 From: Dale Henrichs Date: Tue, 24 Mar 2015 13:30:06 -0700 Subject: [PATCH] Issue #58: on install, pick up a monospaced font from system and set as default [ci skip] --- docs/osPrereqs/ubuntu12.04.md | 22 +++++++++++++++++++ .../instance/post30Load2x.st | 13 +++++++---- .../methodProperties.json | 2 +- .../monticello.meta/version | 2 +- 4 files changed, 33 insertions(+), 6 deletions(-) diff --git a/docs/osPrereqs/ubuntu12.04.md b/docs/osPrereqs/ubuntu12.04.md index 19582d4..ec92911 100644 --- a/docs/osPrereqs/ubuntu12.04.md +++ b/docs/osPrereqs/ubuntu12.04.md @@ -57,8 +57,30 @@ sudo apt-get -y install libgl1-mesa-dev:i386 sudo apt-get -y install libxcb-dri2-0:i386 ``` +##Install Source Code Pro Monospaced Font +1. [Check for the latest release of the Source Code Pro font][5] +2. Copy the `Source code (zip)` link url and use it as an arg to `wget` as follows (in this case you'd download [version 1.017R][6]) + + ``` + wget https://github.com/adobe-fonts/source-code-pro/archive/1.017R.zip + ``` +3. Unzip and install the True Type fonts on your machine: + + ``` + unzip 1.017R.zip + sudo mkdir /usr/local/share/fonts + sudo mkdir /usr/local/share/fonts/truetypes + sudo mkdir /usr/local/share/fonts/truetypes/SourceCodePro + sudo cp source-code-pro-1.017R/TTF/SourceCodePro-Regular.ttf /usr/local/share/fonts/truetypes/SourceCodePro + sudo apt-get install fontconfig + sudo fc-cache -f -v + ``` + [1]: http://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-from-ubuntu-machine [2]: https://help.ubuntu.com/12.04/serverguide/openssh-server.html [3]: ../../bin/osPrereqs [4]: http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html +[5]: https://github.com/adobe-fonts/source-code-pro/releases/latest +[6]: https://github.com/adobe-fonts/source-code-pro/releases/tag/1.017R + diff --git a/repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/instance/post30Load2x.st b/repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/instance/post30Load2x.st index 080c79c..78cceb5 100644 --- a/repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/instance/post30Load2x.st +++ b/repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/instance/post30Load2x.st @@ -1,6 +1,6 @@ doits post30Load2x - | gsDevKitHome windowProperties | + | gsDevKitHome | Smalltalk at: #TODE_CLIENT_INSTALLED ifPresent: [ ^ self ]. gsDevKitHome := FileSystem workingDirectory parent. Deprecation @@ -13,7 +13,12 @@ post30Load2x with: (gsDevKitHome / 'pharo' / 'GemTalkSystemsLogo.png') pathString. (Smalltalk at: #TaskbarMorph) perform: #showTaskbar: with: false. (Smalltalk at: #NECPreferences) perform: #enabled: with: false. - windowProperties := (Smalltalk at: #TDAbstractWindowProperties) import: 'standard-small'. - windowProperties installOn: (Smalltalk at: #TDTopezGemStoneClient). Smalltalk at: #TODE_CLIENT_INSTALLED put: true. - (Smalltalk at: #TDShell) resetWorldMenu \ No newline at end of file + (Smalltalk at: #TDShell) resetWorldMenu. + FreeTypeFontProvider current updateFromSystem. + Smalltalk os isUnix + ifTrue: [ + StandardFonts defaultFont: (LogicalFont familyName: 'DejaVu Sans Mono' pointSize: 9). + StandardFonts setAllStandardFontsTo: StandardFonts defaultFont ]. + ((Smalltalk at: #TDAbstractWindowProperties) import: 'standard-small') + installOn: (Smalltalk at: #TDTopezGemStoneClient) \ No newline at end of file diff --git a/repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/methodProperties.json b/repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/methodProperties.json index d08319f..1f9465e 100644 --- a/repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/methodProperties.json +++ b/repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/methodProperties.json @@ -4,7 +4,7 @@ "instance" : { "dev:" : "dkh 2/20/2015 15:25", "post30Load" : "dkh 7/22/2014 13:56", - "post30Load2x" : "dkh 3/21/2015 16:02", + "post30Load2x" : "dkh 3/24/2015 13:00", "release:" : "dkh 2/17/2015 10:20", "version001:" : "dkh 7/28/2014 10:02", "version100:" : "dkh 7/28/2014 10:02", diff --git a/repository/ConfigurationOfTodeClient.package/monticello.meta/version b/repository/ConfigurationOfTodeClient.package/monticello.meta/version index a0f786f..5d1322b 100644 --- a/repository/ConfigurationOfTodeClient.package/monticello.meta/version +++ b/repository/ConfigurationOfTodeClient.package/monticello.meta/version @@ -1 +1 @@ -(name 'ConfigurationOfTodeClient-dkh.20' message 'install tODE world menu during postload' id 'bacef1ea-0b72-46a3-be26-765cab8aae74' date '21 March 2015' time '4:04:54.097558 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.19' message 'do not open a transcript automatically ... new windowlayout code will open and/or resize automatically ... Transcript menu item on tode menu, too' id '17e13596-c0b3-470d-b0f2-cefc4d82023c' date '21 March 2015' time '2:26:52.735525 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.18' message 'Issue #58: use some new tODE protocol in post load code for 2.0.0' id 'a8ce89a6-c858-40b7-b6d6-c28227e9026d' date '11 March 2015' time '3:05:39.596012 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.17' message 'add 2.0.1 : #dev' id 'd38d666b-4d3c-420f-96c5-365b81d7f8a5' date '20 February 2015' time '3:27:02.556859 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.16' message 'TodeClient v2.0.0 (dkh.16): Changes in support of https://github.com/GsDevKit/gsDevKitHome/issues/32' id 'ff9284b4-d1b5-4763-bc06-1aa08d5d21e8' date '17 February 2015' time '11:26:01.255733 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.15' message 'open 1.0.1 for development and it uses the dev branch of tode ... ' id '4729fd75-af57-451f-a16e-70192f1d560c' date '28 July 2014' time '10:05:58.494973 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.14' message 'release version 1.0.0 - use master branch of tode' id 'b766449c-57f0-4b3d-b401-f7e0694619aa' date '28 July 2014' time '10:03:39.165045 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.13' message 'only execute ConfigurationOfTodeClient>>post30Load once after initial load' id '6f9f38c5-fd7e-4b86-8599-b75bb7b046c8' date '22 July 2014' time '1:58:56.804287 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.12' message 'ConfigurationOfTodeClient uses dev branch of tode and defines devKitRoot: on startup' id '7546ddd8-83c5-43a2-a084-dbf40ec2a0c8' date '20 July 2014' time '10:31:56.224683 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.11' message 'position transcript in corner nestled up agains project list' id 'c733401f-b8e2-4069-97aa-aa06e9a97341' date '19 July 2014' time '2:50:15.877083 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.10' message 'make sure initial workspace is closed' id 'd945b82b-fc04-43f9-9c57-8519d0588ff6' date '17 July 2014' time '9:06:25.774524 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.9' message 'fix a config error' id '6184b707-39cd-4854-a5d3-eee3e6aa4609' date '17 July 2014' time '3:57:00.115537 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.8' message 'fix config' id '1c1edb42-eb9a-4ad0-8f76-6045821442a9' date '17 July 2014' time '3:46:56.384489 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.7' message 'OSProcess needed for GsDevKitCommandLine' id '2de3fec3-fece-4bac-98ae-cb63099fbb70' date '17 July 2014' time '3:46:08.392538 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.6' message 'post30Load additions' id '78ac4ab7-eb17-4349-abef-2bf5fac65eba' date '17 July 2014' time '12:55:52.17049 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.5' message 'update the postload doit' id 'ec04dfe1-2174-4221-9952-e5344a493370' date '17 July 2014' time '12:36:10.012546 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.4' message 'postload doit for Pharo3.0' id '582008ad-fdf2-4736-b346-2132fb902877' date '17 July 2014' time '12:04:03.448485 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.3' message 'just specify loads directlry' id '676546e4-6b48-4ad0-9308-9f696d76809a' date '17 July 2014' time '11:44:21.382486 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.2' message 'add #release symbolic version' id 'd3dde975-1980-40e8-99b2-7c67ab068bb6' date '17 July 2014' time '11:09:25.558485 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.1' message 'version 0.0.1' id '7a7395a3-3054-4c2b-85cf-efb814fd888a' date '17 July 2014' time '10:10:52.246485 am' author 'dkh' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ()) \ No newline at end of file +(name 'ConfigurationOfTodeClient-dkh.21' message 'Issue #58: install a monospaced font for linux' id 'ed79846c-54bf-475e-a582-88a491c63a5d' date '24 March 2015' time '1:29:14.066381 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.20' message 'install tODE world menu during postload' id 'bacef1ea-0b72-46a3-be26-765cab8aae74' date '21 March 2015' time '4:04:54.097558 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.19' message 'do not open a transcript automatically ... new windowlayout code will open and/or resize automatically ... Transcript menu item on tode menu, too' id '17e13596-c0b3-470d-b0f2-cefc4d82023c' date '21 March 2015' time '2:26:52.735525 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.18' message 'Issue #58: use some new tODE protocol in post load code for 2.0.0' id 'a8ce89a6-c858-40b7-b6d6-c28227e9026d' date '11 March 2015' time '3:05:39.596012 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.17' message 'add 2.0.1 : #dev' id 'd38d666b-4d3c-420f-96c5-365b81d7f8a5' date '20 February 2015' time '3:27:02.556859 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.16' message 'TodeClient v2.0.0 (dkh.16): Changes in support of https://github.com/GsDevKit/gsDevKitHome/issues/32' id 'ff9284b4-d1b5-4763-bc06-1aa08d5d21e8' date '17 February 2015' time '11:26:01.255733 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.15' message 'open 1.0.1 for development and it uses the dev branch of tode ... ' id '4729fd75-af57-451f-a16e-70192f1d560c' date '28 July 2014' time '10:05:58.494973 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.14' message 'release version 1.0.0 - use master branch of tode' id 'b766449c-57f0-4b3d-b401-f7e0694619aa' date '28 July 2014' time '10:03:39.165045 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.13' message 'only execute ConfigurationOfTodeClient>>post30Load once after initial load' id '6f9f38c5-fd7e-4b86-8599-b75bb7b046c8' date '22 July 2014' time '1:58:56.804287 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.12' message 'ConfigurationOfTodeClient uses dev branch of tode and defines devKitRoot: on startup' id '7546ddd8-83c5-43a2-a084-dbf40ec2a0c8' date '20 July 2014' time '10:31:56.224683 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.11' message 'position transcript in corner nestled up agains project list' id 'c733401f-b8e2-4069-97aa-aa06e9a97341' date '19 July 2014' time '2:50:15.877083 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.10' message 'make sure initial workspace is closed' id 'd945b82b-fc04-43f9-9c57-8519d0588ff6' date '17 July 2014' time '9:06:25.774524 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.9' message 'fix a config error' id '6184b707-39cd-4854-a5d3-eee3e6aa4609' date '17 July 2014' time '3:57:00.115537 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.8' message 'fix config' id '1c1edb42-eb9a-4ad0-8f76-6045821442a9' date '17 July 2014' time '3:46:56.384489 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.7' message 'OSProcess needed for GsDevKitCommandLine' id '2de3fec3-fece-4bac-98ae-cb63099fbb70' date '17 July 2014' time '3:46:08.392538 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.6' message 'post30Load additions' id '78ac4ab7-eb17-4349-abef-2bf5fac65eba' date '17 July 2014' time '12:55:52.17049 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.5' message 'update the postload doit' id 'ec04dfe1-2174-4221-9952-e5344a493370' date '17 July 2014' time '12:36:10.012546 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.4' message 'postload doit for Pharo3.0' id '582008ad-fdf2-4736-b346-2132fb902877' date '17 July 2014' time '12:04:03.448485 pm' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.3' message 'just specify loads directlry' id '676546e4-6b48-4ad0-9308-9f696d76809a' date '17 July 2014' time '11:44:21.382486 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.2' message 'add #release symbolic version' id 'd3dde975-1980-40e8-99b2-7c67ab068bb6' date '17 July 2014' time '11:09:25.558485 am' author 'dkh' ancestors ((name 'ConfigurationOfTodeClient-dkh.1' message 'version 0.0.1' id '7a7395a3-3054-4c2b-85cf-efb814fd888a' date '17 July 2014' time '10:10:52.246485 am' author 'dkh' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ()) \ No newline at end of file