Apache OpenOffice (AOO) Bugzilla – Issue 109773
[Notes2] Cannot change default style of a comment (font, size, ...)
Last modified: 2023-02-02 09:44:19 UTC
The "DejaVu Sans" font is the default font used for Notes under Linux. Microsoft Office use "Arial" font, with an other size. If one exchange document between those 2 softwares, the notes won't display nicely : they use different font. Between some specific versions and specific OS, it can even become quite ugly to see. It would be nice to add this settings into "Tools->Options->Writer->Default Police", like the others. Regards,
The comments use the UI font. I don't see really a need for such an option. Maybe when printing the comments? Christoph: please have a look.
adding me to cc - Sophie
If we wanted to support changing the font we should have a style for it. Unfortunately this doesn't work ATM as Writer styles are not compatible with EditEngine styles. So all in all this is quite some effort. Not a WONTFIX, but definitely an OOoLater. Things may change in case other, more important problems force us to make the styles of Writer and EditEngine compatible.
Removing sophi of CC, since I was thinking about sgauti
Hi everyone! I can only support mba's statement - we discussed that several times in the past. We can neither use styles, nor can we fully ignore fonts (e.g. use only the system font in any case).
Those facts seems quite problematic :s. christophnoack: Is there an issue opened about this merge of Styles management between Writer and EditEngine ? I have tried to search one, but without any success so far.
There is no such issue and ATM it wouldn't get a high priority, there are just two many other, more important things to do.
I'd love to see SOMETHING done with this. I'm just finishing grading over 40 essays, and since the vast majority of students are writing documents in Word, that's what they're going to open their graded essays in. But Word, the comments font is just too large. I have to go through and change the font size for all of them... with over 40 essays, that's tedious, to say the least. Just changing the font size from 10 to 8 makes a world of difference -- it even looks cleaner in OpenOffice. If there was a place/file to just make that alteration in the default Notes font, I'd gladly do that. Since we can change the font size for each individual note, it's at least possible. Does anyone know where/which file contains the default font definitions for Notes?
if you want to compile from source, just change aItem.Put(SvxFontHeightItem(200,100,EE_CHAR_FONTHEIGHT)); to aItem.Put(SvxFontHeightItem(200,80,EE_CHAR_FONTHEIGHT)); inside SwMarginWin::DefaultItem() function, which is in file sw/source/ui/docvw/postit.cxx
Just wanted to follow up on this, in reply to mod. First, thanks very much for the tip. That's exactly the kind of thing I'm looking for. Second, I'm on Ubuntu; I downloaded the source code for the current stable version of Writer in the standard repos (3.1), and the code you suggested wasn't in postit.cxx. I'm assuming your code might be for Windows. However, I found five places in the postit.cxx I downloaded that contained SvxFontHeightItem(200,100,EE_CHAR_FONTHEIGHT): * SfxItemSet item(aShell->GetPool()); * void SwMarginWin::ResetAttributes() * void SwPostIt::SetPostItText() * View()->GetEditView().RemoveAttribsKeepLanguages(true); <<--- this last one is commented out in the file --->> * Engine()->Clear(); I'm also assuming that postit.cxx controls note appearance, so any/all of these sections are telling OpenOffice how to render the note font. Unfortunately, I'm completely new to tinkering inside OpenOffice source code, although I'm not afraid to dive in. I spent a sleepless but interesting night trying to find out how, but gave up after a few hours. (As my previous post may indicate, I teach writing, and I'm just not versed in this stuff.) Short of removing the standard 3.1 version and compiling it all again from source, I'm not positive how I could simply edit this one file and then recompile what I already have installed. I'm not asking for any step-by-step instructions from anyone, but if there are any guides or quick references on how to just edit that one source file and then recompile what I already have installed, I'd be grateful (I've already been to the developer's guide)... This would be much easier if there was simply a config file someplace that controlled the note appearance, like in /home/user/.openoffice. Oh -- and I'm assuming since SwMarginWin::DefaultItem() wasn't in postit.cxx, the one I should be focusing on is SwPostIt::SetPostItText()?
find the latest code here: http://hg.services.openoffice.org/DEV300/file/2e46017e2878/sw/source/ui/docvw/postit.cxx For information how to build OOo, see the building guide here: http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide PS: for other development questions, please use the appropiate mailing list
Voted for this one as it affects me, too. I'm currently working on a presentation talk script, making heavy use of Notes to write down ideas for the slides and visuals. What happens is that Notes begin linig up vertically and pushing down much more than the text. For my screen, I'd like to reduce the font size for notes generally, since I could cope with 7 or 8 pt if I'd get physically smaller notes in return. But it's very frustrating to change the font size for every note manually.
Hi mmartin, I came close to figuring out how to edit the appropriate cxx file and recompile, but there are no simple solutions for this; most of what I've gathered is spread out across a scree of different pages here and on the web, and each time I've tried to recompile I've gotten an error. I'm in the middle of a massive grading crunch, and since I can't really use OO.org's notes, I've gone back to Word in a virtual machine for the time being. When I'm through with this round of grading, I'm going to take another crack at it. I'm no developer and this is all new territory for me, but it's a hell of an itch that no one else is scratching, so maybe I can come up with a patch.
edit: I should say I _did_ alter the right postit.cxx file, which is buried in a tar.bz2 file in the source code. But recompiling failed.
In previous version it was allowed to change the style of the note. In v. 3.2 I can not change the style of the note which is already inserted. All I can do is selecting a font (and its size) at the beginning of note creation. It is not a minor bug for me, because it was available before and it is a feature which i use frequently. Please fix it!
Reset assignee on issues not touched by assignee in more than 1000 days.
*** Issue 127933 has been marked as a duplicate of this issue. ***
Useful feature not implemented. Cannot change default characters type in comments