Giter VIP home page Giter VIP logo

pharo-pango's Introduction

pharo-pango

A library to manage pango fonts within Pharo

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

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:

CairoLibrary>>macModuleName
	^ '/opt/local/lib/libcairo.dylib'

Trying it

You can execute the examples:

PangoExamples example1

pharo-pango's People

Contributors

estebanlm avatar

Watchers

 avatar  avatar  avatar

pharo-pango's Issues

Some enhancements...

Hi Esteban,

Here is some code that contains the list fonts method that you helped me with.

There is also a new class RSPangoLabel that works with Roassal3. Maybe use-full?

Apologies for not using Iceberg/Git - I haven't figured out how to do the whole push/pull thing yet!

Cheers,

Stewart
SIM-Pango-Extensions.st.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.