Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

leibniz-pharo

Leibniz runtime library for Pharo. Work in progress, not very usable yet!

Installation in a pre-built GToolkit distribution

Execute the following lines in a playground:

Metacello new
    baseline: 'LeibnizForGToolkit';
    repository: 'github://khinsen/leibniz-pharo/src';
    load.

Note that Leibniz makes generous use of Unicode glyphs that are not contained in the default fonts used by GToolkit. The only suitable free fonts I have found to replace them are JuliaMono and Arial Unicode MS. Leibniz will automatically select one of them, if available, for use in graphical displays.

If you want to correctly display these Unicode glyphs in Pharo code (in strings and symbols used by Leibniz), you have to replace the GToolkit default fonts. Paste the following script into a playground and click "Inspect". In the inspector for the resulting RBCompositeRefactoringChange (see screenshot below), accept the changes. screenshot (thanks to @girba for the refactoring magic in this script!)

Installation in a Pharo 8 image

Execute the following lines in a playground:

Metacello new
    baseline: 'Leibniz';
    repository: 'github://khinsen/leibniz-pharo/src';
    load.

Note that Leibniz makes generous use of Unicode glyphs that are not contained in the default fonts used by the standard Pharo images. I have changed the "Default" font to "Arial Unicode MS Regular 10" and the "Code" font to "DejaVu Sans Mono Regular 10", a combination that works well for me under macOS. Assuming that you have those fonts installed (via macOS), execute the following code in a playground to adapt your Pharo settings:

FreeTypeFontProvider current updateFromSystem.

StandardFonts defaultFont:
    (LogicalFont 
         familyName: 'Arial Unicode MS'
         pointSize: 10).

StandardFonts codeFont:
    (LogicalFont
         familyName: 'DejaVu Sans Mono'
         pointSize: 10).

StandardFonts listFont:
    (LogicalFont 
         familyName: 'Arial Unicode MS'
         pointSize: 10).

StandardFonts menuFont:
    (LogicalFont 
         familyName: 'Arial Unicode MS'
         pointSize: 10).

StandardFonts buttonFont:
    (LogicalFont 
         familyName: 'Arial Unicode MS'
         pointSize: 10).

StandardFonts windowTitleFont:
    (LogicalFont 
         familyName: 'Arial Unicode MS'
         pointSize: 11).

StandardFonts balloonFont:
    (LogicalFont 
         familyName: 'Arial Unicode MS'
         pointSize: 9).

StandardFonts haloFont:
    (LogicalFont 
         familyName: 'Arial Unicode MS'
         pointSize: 9).

Dependencies

The following list is provided for information. All the dependencies will be installed automatically in the procedure explained above.

About

Leibniz runtime library for Pharo

Resources

License

Releases

No releases published

Packages

No packages published