Status: FixProposed
Owner: pavel.krivanek
New issue 4330 by pavel.krivanek: text DPI notification
http://code.google.com/p/pharo/issues/detail?id=4330The original implementation of change of text DPI looks like:
TextStyle class >> pixelsPerInch: aNumber
"Set the nominal number of pixels per inch to aNumber."
TextSharedInformation at: #pixelsPerInch put: aNumber asFloat.
AbstractFont allSubInstancesDo: [ :font | font pixelsPerInchChanged ].
This patch replaces it with the Observer pattern so the TextStyle class is
not dependent on 'Graphics-Fonts' package.
Attention: it includes the class initialization call.
Attachments:
dpi.st 657 bytes
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker