Skip to content

Commit d63061e

Browse files
committed
Issue #58: on install, pick up a monospaced font from system and set as default [ci skip]
1 parent 8bf5edb commit d63061e

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

Diff for: docs/osPrereqs/ubuntu12.04.md

+22
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,30 @@ sudo apt-get -y install libgl1-mesa-dev:i386
5757
sudo apt-get -y install libxcb-dri2-0:i386
5858
```
5959

60+
##Install Source Code Pro Monospaced Font
61+
1. [Check for the latest release of the Source Code Pro font][5]
62+
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])
63+
64+
```
65+
wget https://github.com/adobe-fonts/source-code-pro/archive/1.017R.zip
66+
```
67+
3. Unzip and install the True Type fonts on your machine:
68+
69+
```
70+
unzip 1.017R.zip
71+
sudo mkdir /usr/local/share/fonts
72+
sudo mkdir /usr/local/share/fonts/truetypes
73+
sudo mkdir /usr/local/share/fonts/truetypes/SourceCodePro
74+
sudo cp source-code-pro-1.017R/TTF/SourceCodePro-Regular.ttf /usr/local/share/fonts/truetypes/SourceCodePro
75+
sudo apt-get install fontconfig
76+
sudo fc-cache -f -v
77+
```
78+
6079
[1]: http://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-from-ubuntu-machine
6180
[2]: https://help.ubuntu.com/12.04/serverguide/openssh-server.html
6281
[3]: ../../bin/osPrereqs
6382
[4]: http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
83+
[5]: https://github.com/adobe-fonts/source-code-pro/releases/latest
84+
[6]: https://github.com/adobe-fonts/source-code-pro/releases/tag/1.017R
85+
6486

Diff for: repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/instance/post30Load2x.st

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
doits
22
post30Load2x
3-
| gsDevKitHome windowProperties |
3+
| gsDevKitHome |
44
Smalltalk at: #TODE_CLIENT_INSTALLED ifPresent: [ ^ self ].
55
gsDevKitHome := FileSystem workingDirectory parent.
66
Deprecation
@@ -13,7 +13,12 @@ post30Load2x
1313
with: (gsDevKitHome / 'pharo' / 'GemTalkSystemsLogo.png') pathString.
1414
(Smalltalk at: #TaskbarMorph) perform: #showTaskbar: with: false.
1515
(Smalltalk at: #NECPreferences) perform: #enabled: with: false.
16-
windowProperties := (Smalltalk at: #TDAbstractWindowProperties) import: 'standard-small'.
17-
windowProperties installOn: (Smalltalk at: #TDTopezGemStoneClient).
1816
Smalltalk at: #TODE_CLIENT_INSTALLED put: true.
19-
(Smalltalk at: #TDShell) resetWorldMenu
17+
(Smalltalk at: #TDShell) resetWorldMenu.
18+
FreeTypeFontProvider current updateFromSystem.
19+
Smalltalk os isUnix
20+
ifTrue: [
21+
StandardFonts defaultFont: (LogicalFont familyName: 'DejaVu Sans Mono' pointSize: 9).
22+
StandardFonts setAllStandardFontsTo: StandardFonts defaultFont ].
23+
((Smalltalk at: #TDAbstractWindowProperties) import: 'standard-small')
24+
installOn: (Smalltalk at: #TDTopezGemStoneClient)

Diff for: repository/ConfigurationOfTodeClient.package/ConfigurationOfTodeClient.class/methodProperties.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"instance" : {
55
"dev:" : "dkh 2/20/2015 15:25",
66
"post30Load" : "dkh 7/22/2014 13:56",
7-
"post30Load2x" : "dkh 3/21/2015 16:02",
7+
"post30Load2x" : "dkh 3/24/2015 13:00",
88
"release:" : "dkh 2/17/2015 10:20",
99
"version001:" : "dkh 7/28/2014 10:02",
1010
"version100:" : "dkh 7/28/2014 10:02",

Diff for: repository/ConfigurationOfTodeClient.package/monticello.meta/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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 ())
1+
(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 ())

0 commit comments

Comments
 (0)