Issue 4330 in pharo: text DPI notification

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 4330 in pharo: text DPI notification

pharo
Status: FixProposed
Owner: pavel.krivanek

New issue 4330 by pavel.krivanek: text DPI notification
http://code.google.com/p/pharo/issues/detail?id=4330

The 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
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4330 in pharo: text DPI notification

pharo
Updates:
        Labels: Milestone-1.3

Comment #1 on issue 4330 by [hidden email]: text DPI notification
http://code.google.com/p/pharo/issues/detail?id=4330

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4330 in pharo: text DPI notification

pharo

Comment #2 on issue 4330 by pavel.krivanek: text DPI notification
http://code.google.com/p/pharo/issues/detail?id=4330

syntax error in the file fixed

Attachments:
        dpi.st  658 bytes


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4330 in pharo: text DPI notification

pharo
Updates:
        Status: Closed

Comment #3 on issue 4330 by [hidden email]: text DPI notification
http://code.google.com/p/pharo/issues/detail?id=4330

in 13238 Thanks Pavel!!


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker