Ignore:
Timestamp:
11/26/12 13:32:28 (17 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Added annotation font and color serialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/document/interactions.py

    r11201 r11202  
    749749        """ 
    750750        annot = scheme.SchemeTextAnnotation(rect_to_tuple(rect)) 
    751         annot.set_font(self.font.toString()) 
     751        font = {"family": unicode(self.font.family()), 
     752                "size": self.font.pointSize()} 
     753        annot.set_font(font) 
    752754 
    753755        item = self.scene.add_annotation(annot) 
Note: See TracChangeset for help on using the changeset viewer.