Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/estebanlm/pharo-pango
A small library to handle pango fonts within Pharo
https://github.com/estebanlm/pharo-pango
pango pharo
Last synced: 6 days ago
JSON representation
A small library to handle pango fonts within Pharo
- Host: GitHub
- URL: https://github.com/estebanlm/pharo-pango
- Owner: estebanlm
- License: mit
- Created: 2017-11-09T11:06:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-10T10:03:46.000Z (about 6 years ago)
- Last Synced: 2024-10-31T06:23:32.768Z (about 2 months ago)
- Topics: pango, pharo
- Language: Smalltalk
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pharo-pango
A library to manage [pango fonts](http://www.pango.org) within [Pharo](http://pharo.org)# Usage
This is made for macOS for the moment (adding linux and windows support should be trivial).### Prerequisites
you need to have pango installed on your system:- macOS: `sudo port install pango`
- linux: ...
- windows: ...### Installing
```Smalltalk
Metacello new
repository: 'github://estebanlm/pharo-pango/src';
baseline: 'Pango';
load.
```
**WARNING:** Since this is just an experiment and it uses cairo as backend, you need to modify `CairoLibrary` to point to the same version of cairo pango uses. In macOS, I made this:```Smalltalk
CairoLibrary>>macModuleName
^ '/opt/local/lib/libcairo.dylib'
```### Trying it
You can execute the examples:```Smalltalk
PangoExamples example1
```