hi Denis (I'm moving my reply to the xournal list, I think it is a good place for a continuation of our discussion)
Good news. I had some time to kill today and implemented a rough approximation of background for text annotations. Currently there is one option under Options "Background For Text Annotations". If enabled, text annotations have a background drawn (configurable via config variables, including color, color of border, width of border and margin). This is what I did: * added a field to item called textBg (a canvas item). If not NUL, the annotation has a brackground * added a field to UI called ui.textNoteMode. If true, annotations are drawn with a background. * modified code in many places to implement this Currently all annotations have or don't have a background, but it is possible, by adding a new tool (like "note") to have some annotations using this. I am not sure how to do it yet. What works: * Creating them * Resizing * Cut and paste * Undo/redo * Moving (even to other pages) What does not work yet: * The text annotations do not have any information in the xournal file to indicate they were created with a background (it is actually a feature too, because you can enable/disable them easily ;) * It does not print or export them to PDF * It does not properly resize the background when the font changes (probably easy to fix) * Once the option is enabled, current annotations should have a background created. Ideally I'll like to be able to control per note. But this scratches the itch I had nicely (once the printinf/PDF output is completed). I created a branch called "notes" that contains it in http://github.com/dmgerman/xournal It is fairly stable, I think ;) --dmg ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Xournal-devel mailing list Xournal-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xournal-devel